From 288d289b72b2a558e0c7cc9151692eb18a2def0d Mon Sep 17 00:00:00 2001 From: Javan Makhmali Date: Thu, 25 Jun 2015 14:07:14 -0400 Subject: Add "initialized" notification --- lib/assets/javascripts/cable/subscriber_manager.js.coffee | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/assets/javascripts/cable/subscriber_manager.js.coffee') diff --git a/lib/assets/javascripts/cable/subscriber_manager.js.coffee b/lib/assets/javascripts/cable/subscriber_manager.js.coffee index d76832a802..da9a03c3b6 100644 --- a/lib/assets/javascripts/cable/subscriber_manager.js.coffee +++ b/lib/assets/javascripts/cable/subscriber_manager.js.coffee @@ -5,6 +5,7 @@ class Cable.SubscriberManager add: (subscriber) -> {identifier} = subscriber @subscribers[identifier] = subscriber + @notify(subscriber, "initialized") if @sendCommand("subscribe", identifier) @notify(subscriber, "connected") -- cgit v1.2.3