WebSocket support is a new feature we added in Resin 4.0.2 that I’m very excited about. The WebSocket API is a new HTML 5 capability giving browsers full bi-directional asynchronous messaging capability. Like an instant messaging client, either the browser or the server can send a message at any time.
Unlike Comet and long-polling, WebSockets uses a single persistent TCP connection, giving much better response times. If all works as planned, browsers will be able to run truly interactive applications.