Created
September 30, 2011 13:01
-
-
Save imanel/1253674 to your computer and use it in GitHub Desktop.
Directly sending message using Socky Server
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
channel = Socky::Server::Channel.find_or_create('my_app', 'my_channel_name') | |
message = Socky::Server::Message.new({ | |
'event' => 'my_event', | |
'channel' => 'my_channel_name', | |
'data' => { 'my data' => 'some data' } | |
}) | |
channel.deliver(nil, message) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment