WebSocket is protocol, which enables two-way communication between a client and server:
The goal WebSocket is to provide a mechanism for browser-based applications that need two-way communication with servers that does not rely on opening multiple HTTP connections. (RFC 6455)
WebSocket works over HTTP protocol.
| Parameter | Details | 
|---|---|
| url | The server url supporting this web socket connection. | 
| data | The content to send to the host. | 
| message | The message received from the host. |