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

[ci skip] Fix documentation for ActionCable::Channel#broadcast_to

This commit is contained in:
Eric Zhang 2016-08-12 00:23:14 +08:00
parent b9f71e49ae
commit dfd7c2f058

View file

@ -242,10 +242,10 @@ WebNotificationsChannel.broadcast_to(
The `WebNotificationsChannel.broadcast_to` call places a message in the current
subscription adapter (Redis by default)'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`.
name would be `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.
### Subscriptions