diff options
Diffstat (limited to 'lib/action_cable/server/connections.rb')
-rw-r--r-- | lib/action_cable/server/connections.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/action_cable/server/connections.rb b/lib/action_cable/server/connections.rb index b3d1632cf7..47dcea8c20 100644 --- a/lib/action_cable/server/connections.rb +++ b/lib/action_cable/server/connections.rb @@ -18,13 +18,13 @@ module ActionCable connections.delete connection end - # Websocket connection implementations differ on when they'll mark a connection as stale. We basically never want a connection to go stale, as you + # WebSocket connection implementations differ on when they'll mark a connection as stale. We basically never want a connection to go stale, as you # then can't rely on being able to receive and send to it. So there's a 3 second heartbeat running on all connections. If the beat fails, we automatically # disconnect. def setup_heartbeat_timer EM.next_tick do @heartbeat_timer ||= EventMachine.add_periodic_timer(BEAT_INTERVAL) do - EM.next_tick { connections.map &:beat } + EM.next_tick { connections.map(&:beat) } end end end @@ -34,4 +34,4 @@ module ActionCable end end end -end
\ No newline at end of file +end |