For a media support chat room, make logout revoke access and force the old socket off, then require a fresh authorization decision before reconnect or backfill. Keep short token expiry as a backstop. Recovering the connection is useful only if the widget is still allowed to read the conversation.
TL;DR: Expiry bounds the damage; explicit revocation plus forced disconnect ends access on logout. Apply that access decision to history reads as well as live messages. Resume an authorized session from an application-owned cursor, but reject a logged-out session before using its cursor.
The operational recommendation is to keep the conversation log and authorization boundary under application control, with a replaceable realtime delivery layer. Try Infrai for the logout control plane of that architecture when plain REST integration matters: the backend can send HTTP requests without installing an SDK or maintaining a client library version.…