Module: Rage::Cable::RemoteDisconnect
- Defined in:
- lib/rage/cable/remote_disconnect.rb
Overview
Include this module in your connection class to enable server-initiated disconnections.
This allows you to disconnect WebSocket connections from anywhere in your application using Rage::Cable::Connection.disconnect. A common use case is forcing a logout when a user's session is invalidated or their account is suspended.
Defined Under Namespace
Modules: ClassMethods