Skip to content

Instantly share code, notes, and snippets.

@fguisso
Forked from Anderson-Juhasc/socket.js
Last active September 6, 2015 23:57
Show Gist options
  • Save fguisso/1ee6bbbf76aa03d6bf70 to your computer and use it in GitHub Desktop.
Save fguisso/1ee6bbbf76aa03d6bf70 to your computer and use it in GitHub Desktop.
var ws = new WebSocket('wss://api.blinktrade.com/trade/');
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