What does it do?
Much like HTTP, WebSocket is a communications protocol between a web browser and an origin server that operates on standard ports TCP 80 and 443. Instead of a series of connections, WebSockets establish a single long-held bi-directional connection between a client and server. They're beneficial for applications that require continuous low-latency communication, such as real-time chat.
When and how should I use it?
Enable web socket connections if your application is configured for real-time communications.