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:
parent
4d288f0b43
commit
484b3ca402
1 changed files with 2 additions and 2 deletions
|
@ -510,10 +510,10 @@ WebNotificationsChannel.broadcast_to(
|
||||||
The `WebNotificationsChannel.broadcast_to` call places a message in the current
|
The `WebNotificationsChannel.broadcast_to` call places a message in the current
|
||||||
subscription adapter's pubsub queue under a separate broadcasting name for each
|
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
|
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
|
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
|
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,
|
to the server-side broadcast call, JSON encoded for the trip across the wire,
|
||||||
and unpacked for the data argument arriving to `received`.
|
and unpacked for the data argument arriving to `received`.
|
||||||
|
|
Loading…
Reference in a new issue