diff options
Diffstat (limited to 'lib/action_cable/server.rb')
-rw-r--r-- | lib/action_cable/server.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/action_cable/server.rb b/lib/action_cable/server.rb index b6ea201b52..9a30c7d3bf 100644 --- a/lib/action_cable/server.rb +++ b/lib/action_cable/server.rb @@ -32,11 +32,11 @@ module ActionCable @websocket.on(:message) do |event| message = event.data - worker_pool.async.received_data(self, message) if message.is_a?(String) + worker_pool.async.invoke(self, :received_data, message) if message.is_a?(String) end @websocket.on(:close) do |event| - worker_pool.async.cleanup_subscriptions(self) + worker_pool.async.invoke(self, :cleanup_subscriptions) end @websocket.rack_response |