diff options
author | Javan Makhmali <javan@javan.us> | 2015-07-07 09:43:22 -0400 |
---|---|---|
committer | Javan Makhmali <javan@javan.us> | 2015-07-07 09:43:22 -0400 |
commit | 239d79e9eb72c4bc363405f1535b30dd58a8a6b2 (patch) | |
tree | 0b16e70f8925329a07b63a82a782768c90d6149f /lib/assets/javascripts/cable/subscriber_manager.js.coffee | |
parent | ee6b6cabfbd7b0a8f48cc6fae1bcd3e65300495c (diff) | |
download | rails-239d79e9eb72c4bc363405f1535b30dd58a8a6b2.tar.gz rails-239d79e9eb72c4bc363405f1535b30dd58a8a6b2.tar.bz2 rails-239d79e9eb72c4bc363405f1535b30dd58a8a6b2.zip |
Add helper to inspect current state
Diffstat (limited to 'lib/assets/javascripts/cable/subscriber_manager.js.coffee')
-rw-r--r-- | lib/assets/javascripts/cable/subscriber_manager.js.coffee | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/assets/javascripts/cable/subscriber_manager.js.coffee b/lib/assets/javascripts/cable/subscriber_manager.js.coffee index 0b6a16590c..1eef98ff0b 100644 --- a/lib/assets/javascripts/cable/subscriber_manager.js.coffee +++ b/lib/assets/javascripts/cable/subscriber_manager.js.coffee @@ -36,3 +36,6 @@ class Cable.SubscriberManager @consumer.connection.isOpen() else @consumer.send({command, identifier}) + + toJSON: -> + subscriber.identifier for subscriber in @subscribers |