panel
panel copied to clipboard
Websocket remains open after server is suspended
Current Behavior
Both on the panel and through the API, the websocket connection appears to remain open after a server has been suspended for around 10 minutes, until the auth token expires and it requests a new one and of course is unable to authenticate. This is the error received through the API at this point: {"event":"jwt error","args":["jwt: exp claim is invalid"]}
Expected Behavior
An event which would be received through the socket for status update stating that the server is suspended, followed by the socket connection closing.
Steps to Reproduce
Option A (through the panel)
- Open the console of a server
- Open the same server in the admin area in a different tab
- Suspend said server in the admin tab and go back to the console tab
- The socket remains open, this can be seen in dev tools under the Network tab
Option B (through the API)
- Connect to the console through the API
- Suspend the server
- Send messages through the socket
Panel Version
1.11.7
Wings Version
1.11.7
Games and/or Eggs Affected
No response
Docker Image
No response
Error Logs
Is there an existing issue for this?
- [x] I have searched the existing issues before opening this issue.
- [x] I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server.
- [x] I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.
Tested using 1.11.10, websocket does remain open during and after shutdown. In fact, the server console refreshed the connection and kept the new one alive. Refreshing the page gives the expected error, but nothing is displayed on the screen to indicate as such aside from a loading animation.
wtf