How to disconnect a client in Action cable (rails 5)? I would like the user to be completely disconnected (similar to when he closes the tab).
to disconnect from the client side (in js), call
App.cable.disconnect();
to disconnect from the server side - see the answer from @prograils