Method: ActionCable::RemoteConnections::RemoteConnection#disconnect
- Defined in:
- actioncable/lib/action_cable/remote_connections.rb
#disconnect(reconnect: true) ⇒ Object
Uses the internal channel to disconnect the connection.
58 59 60 |
# File 'actioncable/lib/action_cable/remote_connections.rb', line 58 def disconnect(reconnect: true) server.broadcast internal_channel, { type: "disconnect", reconnect: reconnect } end |