[GH-ISSUE #1199] Don't keep retrying websockets connection with an invalid token #2680

Closed
opened 2026-03-14 05:04:39 +03:00 by kerem · 0 comments
Owner

Originally created by @NiceGuyIT on GitHub (Jul 6, 2022).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1199

Is your feature request related to a problem? Please describe.
If the session times out, for example overnight, you are presented with the login page. Open the developer tools and you'll notice the WebSockets connection is tried every 5 seconds with a null token. This is needless chatter and could cause confusion when troubleshooting other issues.

Describe the solution you'd like
Check if the token represents a valid token before attempting to [re]connect WebSockets.

Describe alternatives you've considered
N/A

Additional context
This screenshot shows the console from the time TRMM started the connection this morning.
image

Originally created by @NiceGuyIT on GitHub (Jul 6, 2022). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1199 **Is your feature request related to a problem? Please describe.** If the session times out, for example overnight, you are presented with the login page. Open the developer tools and you'll notice the WebSockets connection is tried every 5 seconds with a null token. This is needless chatter and could cause confusion when troubleshooting other issues. **Describe the solution you'd like** Check if the token represents a valid token before attempting to [re]connect WebSockets. **Describe alternatives you've considered** N/A **Additional context** This screenshot shows the console from the time TRMM started the connection this morning. ![image](https://user-images.githubusercontent.com/7763429/177553180-6234ede9-5024-414f-849d-50ed821a9744.png)
kerem 2026-03-14 05:04:39 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#2680
No description provided.