Skip to content
This repository has been archived by the owner on Nov 1, 2017. It is now read-only.

update docs for broadcast_to to pass a message. #50

Merged
merged 1 commit into from Aug 2, 2015

Conversation

lsylvester
Copy link
Contributor

No description provided.

@@ -35,7 +35,7 @@ module Channel
#
# You can then broadcast to this channel using:
#
# CommentsChannel.broadcast_to(@post)
# CommentsChannel.broadcast_to(@post, @comment.as_json)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

broadcast already calls to_json (

server.broadcasting_redis.publish broadcasting, message.to_json
), so we just need @comment here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kaspth Updated.

kaspth added a commit that referenced this pull request Aug 2, 2015
update docs for broadcast_to to pass a message.
@kaspth kaspth merged commit af34e9b into rails:master Aug 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants