Skip to content

Conversation

@nilcolor
Copy link

Summary

Update docs with correct examples of the AnyCable.broadcast usage.
Current examples tells that Hash can be passed as 2nd parameter. But it is not. It works with ActionCable but not with AnyCable

ActionCable.server.broadcast("echo_channel", {text: "hoi"}) # works
AnyCable.broadcast("echo_channel", {text: "hoi"}) # doesn't work
AnyCable.broadcast("echo_channel", JSON.dump({text: "hoi"})) # works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant