Skip to main content
Markdown

Take a user out of everything

POST 

/wordplus/realtime/users/:id/disconnect

Takes a user out of everything at once, on every connection: their pages leave every room, the realtime server forgets who they are and stops their calls ringing, and their group calls and live streams take them out (a host stays). Each page then asks your server routes for new tokens and a new identity, and the tokens signed for the user before now are refused, so your rules decide whether they come back: a user you signed out, whose session is gone, or whom you blocked does not. A page hears signed_out.

The connection stays open, so the other plugins and products on it carry on.

In the packages: realtime.user( id ).disconnect().

Request​

Responses​

Done.