Skip to content

Instantly share code, notes, and snippets.

@aep
Created November 20, 2014 16:07
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 aep/52316512cd66a5f7a7c7 to your computer and use it in GitHub Desktop.
Save aep/52316512cd66a5f7a7c7 to your computer and use it in GitHub Desktop.
var dispatcher = new WebSocketRails('localhost:3000/websocket');
var channel = dispatcher.subscribe('test');
channel.bind('test', function(data) { console.log("hello ws"); });
WebsocketRails[:test].trigger(:tes, 123)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment