From 53e163dc3fd2c77c7967534665e81e0ef40df580 Mon Sep 17 00:00:00 2001 From: Daniel Rhodes Date: Tue, 1 Mar 2016 02:48:15 +0100 Subject: 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. --- actioncable/test/client_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actioncable/test') 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 -- cgit v1.2.3