From f51cb7eef5be8e3496ea653fec04bedd6e5ec334 Mon Sep 17 00:00:00 2001 From: Daniel Rhodes Date: Tue, 1 Mar 2016 01:21:19 +0100 Subject: Added welcome message type and fix test hacks --- actioncable/app/assets/javascripts/action_cable/connection.coffee | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actioncable/app') diff --git a/actioncable/app/assets/javascripts/action_cable/connection.coffee b/actioncable/app/assets/javascripts/action_cable/connection.coffee index 4244322a1e..8cab6a301f 100644 --- a/actioncable/app/assets/javascripts/action_cable/connection.coffee +++ b/actioncable/app/assets/javascripts/action_cable/connection.coffee @@ -75,6 +75,8 @@ class ActionCable.Connection {identifier, message, type} = JSON.parse(event.data) switch type + when message_types.welcome + @consumer.subscriptions.notify(@consumer.connectionMonitor, "connected") when message_types.confirmation @consumer.subscriptions.notify(identifier, "connected") when message_types.rejection -- cgit v1.2.3