mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Document heartbeat purpose
This commit is contained in:
parent
a2c08e78e1
commit
e3bf82625e
1 changed files with 3 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
module ActionCable
|
module ActionCable
|
||||||
module Connection
|
module Connection
|
||||||
|
# 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.
|
||||||
class Heartbeat
|
class Heartbeat
|
||||||
BEAT_INTERVAL = 3
|
BEAT_INTERVAL = 3
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue