aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/test/client_test.rb
diff options
context:
space:
mode:
authorDaniel Rhodes <rhodes.daniel@gmail.com>2016-03-01 02:48:15 +0100
committerDaniel Rhodes <rhodes.daniel@gmail.com>2016-03-01 02:48:15 +0100
commit53e163dc3fd2c77c7967534665e81e0ef40df580 (patch)
tree1b47cc71917969da7eeee627edcb166036549265 /actioncable/test/client_test.rb
parentf51cb7eef5be8e3496ea653fec04bedd6e5ec334 (diff)
downloadrails-53e163dc3fd2c77c7967534665e81e0ef40df580.tar.gz
rails-53e163dc3fd2c77c7967534665e81e0ef40df580.tar.bz2
rails-53e163dc3fd2c77c7967534665e81e0ef40df580.zip
Make ping into a message type
This change makes ping into a message type, which makes the whole protocol a lot more consistent. Also fixes hacks on the client side to make this all work.
Diffstat (limited to 'actioncable/test/client_test.rb')
-rw-r--r--actioncable/test/client_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actioncable/test/client_test.rb b/actioncable/test/client_test.rb
index d15a47e02e..be0529bb8b 100644
--- a/actioncable/test/client_test.rb
+++ b/actioncable/test/client_test.rb
@@ -75,7 +75,7 @@ class ClientTest < ActionCable::TestCase
@ws.on(:message) do |event|
hash = JSON.parse(event.data)
- if hash['identifier'] == '_ping'
+ if hash['type'] == 'ping'
@pings += 1
else
@messages << hash