Is it possible to forcefully close all socket connections from a user at logout time ?
The documentation for the example users_socket
has an example of sending disconnect
message to a channel with topic users_socket:<id>
, where id is a socket id set in the Socket module.
However, it is not clear if the topic is a special one (that is available by default on all sockets ?) or if it only make sense in the case of the example.
If so, should I list the opened sockets by id (how ?) and close the socket (how ?)