Problem
The current WebSocket probe in #1391 detects session expiry by checking for opaqueredirect. This works for proxies that return a 302 Redirect on handshake.
However, other proxies might:
- Return
200 OK but serve a login page HTML.
- Return
401 Unauthorized or 403 Forbidden.
In these cases, the current check fails to detect that re-auth is needed.
Proposed Solution
Observe additional proxy behaviours (such as returning HTML on 200, or 401/403 status codes) and update the probeConnection logic in channel.ts to handle them accordingly.
Problem
The current WebSocket probe in #1391 detects session expiry by checking for
opaqueredirect. This works for proxies that return a302 Redirecton handshake.However, other proxies might:
200 OKbut serve a login page HTML.401 Unauthorizedor403 Forbidden.In these cases, the current check fails to detect that re-auth is needed.
Proposed Solution
Observe additional proxy behaviours (such as returning HTML on 200, or 401/403 status codes) and update the
probeConnectionlogic inchannel.tsto handle them accordingly.