EdgeOne supports the WebSocket protocol that allows the server to actively send data to the client.
WebSocket is a TCP-based persistent protocol that implements full-duplex communication between the client and server and allows the server to proactively send information to the client. Before the emergence of WebSocket, to implement such duplex communication, web applications needed to consistently send HTTP request calls for inquiry, which increased service costs and reduced the efficiency.
Thanks to full-duplex, WebSocket is widely used in scenarios such as social networking subscription, online collaboration, market quotation push, interactive live streaming, online education, and Internet of Things. It can better save server resources and bandwidth and implement communication with higher real-timeliness.
- Maximum connection time: If there is no data transmissions within the period, the connection will be disconnected.
- The maximum connection duration varies with the following editions:
- Ultimate: 120s
- Standard: 60s