Description
When clients disconnect from the server, the awareness states are removed. When clients reconnect to the server, and try to set the local state through setLocalStateField() that won’t happen, because there is no state to update.
As a result the list of connected users (= awareness states) stays empty after losing the connection to the server, even when the it’s back online and all clients reconnected successfully.
Reproduction
Open an editor demo with a list of connected users
Stop the server
Restart the server
Expected behavior
I’d expect the clients to fetch up all awareness states again after a reconnect.
Environment Information
y-websocket 1.3.7
I’m sending a PR with proposed changes to fix this issue.
Description When clients disconnect from the server, the awareness states are removed. When clients reconnect to the server, and try to set the local state through
setLocalStateField()
that won’t happen, because there is no state to update.As a result the list of connected users (= awareness states) stays empty after losing the connection to the server, even when the it’s back online and all clients reconnected successfully.
Reproduction
Expected behavior I’d expect the clients to fetch up all awareness states again after a reconnect.
Environment Information
I’m sending a PR with proposed changes to fix this issue.