diff options
Diffstat (limited to 'lib/action_cable/server')
-rw-r--r-- | lib/action_cable/server/broadcasting.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_cable/server/broadcasting.rb b/lib/action_cable/server/broadcasting.rb index de13e26511..4f72ffd96f 100644 --- a/lib/action_cable/server/broadcasting.rb +++ b/lib/action_cable/server/broadcasting.rb @@ -16,7 +16,7 @@ module ActionCable # # Client-side coffescript which assumes you've already requested the right to send web notifications # App.cable.subscriptions.create "WebNotificationsChannel", # received: (data) -> - # web_notification = new Notification data['title'], body: data['body'] + # new Notification data['title'], body: data['body'] module Broadcasting # Broadcast a hash directly to a named <tt>broadcasting</tt>. It'll automatically be JSON encoded. def broadcast(broadcasting, message) |