Using Socket.IO with the Java API for WebSocket?

If you have looked into how to use WebSocket with emergent JavaScript frameworks like Angular, Backbone, Ember or Knockout, it's very likely you've come across Socket.IO. While Socket.IO is a very useful library, it is mostly geared towards Node.js and significantly different from plain WebSockets as defined by the IETF and the W3C as well as the JCP/JSR 356 (the Java API for WebSocket). However, with a little bit of hacking, it's not too hard to get the Socket.IO client library to work with the Java API for WebSocket.

Lee Chuk Munn from the Advanced Technology Applications Practice for the National University of Singapore, Institute of Systems Science describes the problem space well and shows you how to hack a basic solution. Chuk plans on working on a framework that builds a more complete solution to marry Socket.IO and JSR 356. He used GlassFish 4 and NetBeans 7.4 for his work. Does this inspire you to hack a framework on top of JSR 356, join Chuk in his efforts or contribute to the GlassFish community in the New Year :-)?

Comments:

how to load testing for webSockets?

can Jmeater tests Socket.IO?
can OATS(Oracle testing sute) test Socket.IO?

Posted by guest on February 17, 2014 at 05:06 PM PST #

wonderfull site

Posted by saurabh singh on February 18, 2014 at 06:05 AM PST #

As far as I know, none of the mainstream load testing tools support WebSocket out of the box yet. You can extend the tools yourself easily in most cases.

Posted by Reza Rahman on February 18, 2014 at 09:12 AM PST #

Post a Comment:
Comments are closed for this entry.