• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Websocket API implementation by different browsers

 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,

I have been checking a bit about websockets and I see that they are supported by current major browsers but not by IE < 10 (which is a problem for a lot of companies as a lot of times you are obliged to support back up to IE7 or even 6 if you are very unlucky); but anyway, my question is not related to the browser support but more about the browser implementation of the WebSocket API, is this a standard or will we have to implement calls differently depending on the browser?

Thanks and regards.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The page you linked to has link to a Wikipedia page - that would be a good starting point to learn about WebSockets.

On the server side you'd need Servlet API 3.1 - Tomcat 8, for example.
 
Albareto McKenzie
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yep, I missed the top links, I have checked them now, still I could not find any mention to specific implementation by browser. So I will assume that the JS code to create a WebSocket and communicate with the server is the same for every browser that supports it (that was my original question).

Cheers.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I see, I thought you were asking about the protocol. The client-side is also standardized: http://dev.w3.org/html5/websockets/
 
Albareto McKenzie
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:I see, I thought you were asking about the protocol. The client-side is also standardized: http://dev.w3.org/html5/websockets/



Good to hear, thanks for the link
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic