"HTML5 WebSocket is a revolutionary new communication feature in the HTML5 specification, which defines a full-duplex communication channel that operates over the Web through a single socket. WebSocket is not just another incremental enhancement of conventional HTTP communications; it represents a major advance for real-time, event-driven web applications. This Refcard includes technical details of the WebSocket protocol, sample API usage, fallbacks for older browsers, and more."1
WebSocket: a standard protocol for creating long-running bi-directional connections between a browser and a server.
W3C WebSocket http://dev.w3.org/html5/websockets
RFC 6455 defines the protocol. http://tools.ietf.org/html/rfc6455
WebSockets allow extremely low latency communication with little overhead.
WebSockets are useful for streaming events in realtime to many listeners.
Example: These listeners can implement realtime dashboards or alerts based on events.
WebSockets are a part of the HTML5 specification.
WebSockets are a part of the Java Servlet 3.1 specification.
JSR 340: Java Servlet 3.1 Specification. http://jcp.org/en/jsr/detail?id=340
JSR 356 is defining a standard API for creating WebSocket applications in the Java EE 7 Platform.
Reference Implementation (RI)
Tyrus: Web Socket RI for Java http://java.net/projects/tyrus
WebSocket is a layer on top of TCP
Glassfish3 3.1.2 asadmin set configs.config.server-config.network-config.protocols.protocol.http-listener-1.http.websockes-support-enabled=true
or set via admin console
-server-config > Network Listeners > select listener > HTTP tab > Websockets support
JCache standard api for caches JSR 107 - (Jee7) Note: Coherence supports the API
"The only Portable WebSocket/Comet Framework supporting Scala, Groovy and Java"