Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Contributor
Posts: 3
Registered: ‎02-02-2011
My Device: Not Specified

Web Works Socket Sample program

Hi friends,

     If you have worked on Black Berry Web Works then please guide me how to use the Socket in Web Works    OR   How to use Socket in Java Script.

      Please reply me if any one have idea.

Thanking you,

Nilesh.

Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Web Works Socket Sample program

Hello,

 

if you are referring to HTML5 Web Sockets, that is not currently supported on the BlackBerry Web Platform.

 

However, sockets technology certainly is supported on BlackBerry, and you can access this functionality through the use of a custom JavaScript extension.

 

Please see the following Knowledge Base article on networking, which includes a sample application that demonstrates how to establish socket connections.

http://supportforums.blackberry.com/t5/Java-Development/What-Is-Network-API-alternative-for-legacy-O...

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
New Developer
Posts: 70
Registered: ‎01-13-2011
My Device: Torch 9800 and Playbook
My Carrier: Rogers

Re: Web Works Socket Sample program

Hi astanley, does the Playbook have any options for using sockets? It's my understanding we don't have the facilities to write custom JavaScript extensions yet.

New Contributor
Posts: 6
Registered: ‎01-31-2011
My Device: Will get a Playbook

Re: Web Works Socket Sample program

Hi AStanley,

 

There seems to be a lot of information about Javascript extensions, and conflicting information on whether or not these can be used in the playbook.

 

 

So, if I create a Javascript extension for the Java implementation of sockets, can I use this in a webworks application for the PlayBook ?

 

If I can, this would mean I could use any of the samples from Java and use extensions for pieces we need

 

 

 

Thanks in Advance for your answer

Highlighted
Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: Web Works Socket Sample program

@Nabotus - You can't create those extensions on the Playbook yet due to the lack of a JVM...

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.