Skip to content

Instantly share code, notes, and snippets.

@imanel
Created September 30, 2011 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imanel/1253674 to your computer and use it in GitHub Desktop.
Save imanel/1253674 to your computer and use it in GitHub Desktop.
Directly sending message using Socky Server
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