Last active
September 6, 2015 23:57
-
-
Save Anderson-Juhasc/062cf6c129e0de406876 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 ws = new WebSocket('wss://url'); | |
ws.on('open', function() { | |
console.log('open connect'); | |
ws.send("channel or msg"); | |
}); | |
ws.on('message', function(message) { | |
console.log(message); | |
}); | |
ws.on('close', function() { | |
console.log('close connect'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment