aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/connection/base.rb
diff options
context:
space:
mode:
authorJavan Makhmali <javan@javan.us>2015-11-06 14:09:38 -0500
committerJavan Makhmali <javan@javan.us>2015-11-06 14:09:38 -0500
commit365891d5eff15a53919688ac78ac9af3edc0d664 (patch)
tree4f7804c0459ec6d37e151610271d56efd4ee9fea /lib/action_cable/connection/base.rb
parente2ed68cc70925372681c2fb50b505b110825c8f7 (diff)
downloadrails-365891d5eff15a53919688ac78ac9af3edc0d664.tar.gz
rails-365891d5eff15a53919688ac78ac9af3edc0d664.tar.bz2
rails-365891d5eff15a53919688ac78ac9af3edc0d664.zip
Share internal identifiers and message types with the JavaScript client
Diffstat (limited to 'lib/action_cable/connection/base.rb')
-rw-r--r--lib/action_cable/connection/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_cable/connection/base.rb b/lib/action_cable/connection/base.rb
index a988060d56..6df168e4c3 100644
--- a/lib/action_cable/connection/base.rb
+++ b/lib/action_cable/connection/base.rb
@@ -119,7 +119,7 @@ module ActionCable
end
def beat
- transmit ActiveSupport::JSON.encode(identifier: '_ping', message: Time.now.to_i)
+ transmit ActiveSupport::JSON.encode(identifier: ActionCable::INTERNAL[:identifiers][:ping], message: Time.now.to_i)
end