Do open web cards use bandwidth or other resources?

If I have a websocket connection between the server and the desktop client, is it true that there is no data or bandwidth that is used or exchanged between them, unless I explicitly send them? And if so, does this mean that I could essentially have thousands of open connections on the server at a time while data was being transmitted very rarely?

+8
networking server-side websocket
source share
1 answer

Technically, yes. Although the WebSocket protocol has ping / pong frames, and either of these two ends can periodically send pings and wait for pong as responses, otherwise this will lead to the connection being deleted.

It would be a very bad idea not to implement the "keep alive" mechanism; you cannot tell which connections are actually connected or improperly closed.

http://blog.stephencleary.com/2009/05/detection-of-half-open-dropped.html

+3
source share

All Articles