There's no support.
The preferred way depends on what you have on server side and on what browsers your app should work . For example if you have node.js then you can user socket.io. If for you is ok to have websockets then use them as usually,as are used on web.
Thanks for your help, Lets say I have a java server for the server side and I would like to push the browser some kind of event message what will be the preferred way? in java we use JMS but in the web world this is not an option.
I'm have no knowledge about Java platforms and Java frameworks but since you asked for web sockets you can take a look at which browsers support them and if fits your project requirements then websockets are a good choice, you can use them in an ordinary way - as are used on web clients.
in java we use JMS but in the web world this is not an option.