I am faced with the necessity to push some messages to the clients of my web-application in Java. After some reading up on the subject, i decided to use websockets as an emerging and a promicing technology, and to use GlassFish as the server. However, all the examples i find are either quite complicated or outdated and do not compile with Grizzly 2.
Is there a really simple example with just a few lines of code that would push something like "hello, world" to the client?
Thanks in advance, Timofey.