You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Python Websockets [1] to manage a set of server-side websocket connections from browser. They must be registered and maintained.
Problem: when User disconnects a stale connection remains present in the registry. Also, if user refreshes browser (1, 2, 17... or n times), or a reconnect script is present, more invalid connections are registered. This creates a big registry of stale connections.
The docs address this issue as follows:
As shown in the synchronization example above, if you need to maintain
a list of currently connected clients, you must register them when
they connect and unregister them when they disconnect.
How are stale connections properly identified and removed? Is some sort of ping/pong scheme required?
I did find the code in [2], but it goes back to 2018. Is this obsolete, or has this issue since been addressed?
Note: Also documented on SO here:
https://stackoverflow.com/questions/63639414/how-to-manage-stale-websocket-connections]
Using Python Websockets [1] to manage a set of server-side websocket connections from browser. They must be registered and maintained.
Problem: when User disconnects a stale connection remains present in the registry. Also, if user refreshes browser (1, 2, 17... or n times), or a reconnect script is present, more invalid connections are registered. This creates a big registry of stale connections.
The docs address this issue as follows:
How are stale connections properly identified and removed? Is some sort of ping/pong scheme required?
I did find the code in [2], but it goes back to 2018. Is this obsolete, or has this issue since been addressed?
Ref:
The text was updated successfully, but these errors were encountered: