What is a WebSocket?
The HTML5 Communications specification describes a WebSocket as a full-duplex communications channel that operates over a single socket. Web Sockets traverse firewalls and routers seamlessly and allow authorized cross-domain communication. A WebSocket connection is established by the client requesting an HTTP Upgrade during the initial negotiation, between the client and server. Once that handshake is successful, the connection is upgraded to bi-directionally stream 0xFF-separated UTF-8 messages.