Events
Receive tokenEvent
Emitted by the server right before it force-disconnects a socket whose credential is no longer valid.
server → client on the
resource channel. Socket.IO event name: tokenEvent.Emitted by the server right before it force-disconnects a socket whose credential is no longer valid.
Payload is a plain string, not an object. 'TokenExpired' is sent when the JWT exp has passed, 'tokenBlacklisted' when the JWT was blacklisted (logout) or a bot API key was revoked. The socket is disconnected ~1 second later; re-authenticate and reconnect.
Payload: tokenEvent
Payload of the 'tokenEvent' socket event.
Type: "TokenExpired" \| "tokenBlacklisted"