-
Notifications
You must be signed in to change notification settings - Fork 339
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When a client's computer goes to sleep or loses its network connection for an extended period, the WebSocket drops and exhausts its maximum reconnect attempts. This leaves the channel permanently in a CLOSED state.
When the user wakes up the computer and interacts with the app (e.g., clicks a button), the dispatch method successfully spins up a new WebSocket connection to send the action. However, it only sends the UserEvent payload. Because an InitRequest is never sent on this newly established connection, the server processes the user event but completely skips the on_load lifecycle callback.
To Reproduce
- Allow CloudRun/Gunicorn timeout to be reach when the computer is not connected to the internet.
- Reconnect to internet
- Go back to the open tab and invoke a callback that requires the on_load to be run (e.g. session initialization code)
Expected behavior
on_load should be invoked before user event callback.
Desktop System Info
- OS: MacOs
- Browser: Chrome
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working