From 365891d5eff15a53919688ac78ac9af3edc0d664 Mon Sep 17 00:00:00 2001 From: Javan Makhmali Date: Fri, 6 Nov 2015 14:09:38 -0500 Subject: Share internal identifiers and message types with the JavaScript client --- lib/action_cable/connection/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/action_cable/connection') 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 -- cgit v1.2.3