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