diff options
Diffstat (limited to 'lib/action_cable')
-rw-r--r-- | lib/action_cable/server.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/action_cable/server.rb b/lib/action_cable/server.rb index 9a30c7d3bf..e657f6d636 100644 --- a/lib/action_cable/server.rb +++ b/lib/action_cable/server.rb @@ -37,6 +37,7 @@ module ActionCable @websocket.on(:close) do |event| worker_pool.async.invoke(self, :cleanup_subscriptions) + worker_pool.async.invoke(self, :disconnect) if respond_to?(:disconnect) end @websocket.rack_response |