WebSocket Protocol is an Application Layer protocol that enables a client and server to send and receive messages simultaneously through a full duplex stream over one TCP/IP connection on port 80 or 443.
Default WebSocket protocol client request, and server response:
- send HTTP/1.1 GET
GET /chat HTTP/1.1 Host: server.example.com