-
-
Save palkan/ef27446f36efe32a6110a76b09d7243a to your computer and use it in GitHub Desktop.
WS Director Examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TestChannel < ActionCable::Channel::Base | |
def subscribed | |
stream_from "all" | |
end | |
def echo(data) | |
transmit data | |
end | |
def broadcast(data) | |
ActionCable.server.broadcast "all", data | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment