SockJS enables browsers to communicate with the server using a simple WebSocket-like api for sending and receiving messages. Under the bonnet SockJS chooses to use one of several protocols depending on browser capabilities and what apppears to be working across the network.
Available protocols include:
This means, it should just work irrespective of what browser is being used, and whether there are nasty things like proxies and load balancers between the client and the server.
For more detailed information on SockJS, see their website.
On the server side, you interact using instances of {@link SockJSSocket} - this allows you to send data to theclient or receive data via the {@link SockJSSocket#dataHandler}.
You can register multiple applications with the same SockJSServer, each using different path prefixes, each application will have its own handler, and configuration.
@author Tim Fox
|
|
|
|
|
|