1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix remaining broadcasting_name example from Action Cable guide [ci skip]

- Followup of https://github.com/rails/rails/pull/26125.
This commit is contained in:
Prathamesh Sonpatki 2016-08-12 12:19:34 +08:00
parent 4d288f0b43
commit 484b3ca402
No known key found for this signature in database
GPG key ID: 8B90F6B89E2BCB71

View file

@ -510,10 +510,10 @@ WebNotificationsChannel.broadcast_to(
The `WebNotificationsChannel.broadcast_to` call places a message in the current
subscription adapter's pubsub queue under a separate broadcasting name for each
user. For a user with an ID of 1, the broadcasting name would be
"web_notifications_1".
`web_notifications:1`.
The channel has been instructed to stream everything that arrives at
"web_notifications_1" directly to the client by invoking the `received`
`web_notifications:1` directly to the client by invoking the `received`
callback. The data passed as argument is the hash sent as the second parameter
to the server-side broadcast call, JSON encoded for the trip across the wire,
and unpacked for the data argument arriving to `received`.