Websocket review



How to realize message communication gracefully?



downside:   The browser needs to constantly send requests to the server. However, HTTP requests and responses may contain long headers, in which the real effective data may be only a small part, so it will consume a lot of bandwidth resources


HTML5 defines websocket protocol

Websocket is a kind of network transmission protocol, which can carry out full duplex communication on a single TCP connection and is located in the application layer of OSI model