Skip to content

Instantly share code, notes, and snippets.

@christopherobin
Created April 26, 2013 04:25
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 christopherobin/5465027 to your computer and use it in GitHub Desktop.
Save christopherobin/5465027 to your computer and use it in GitHub Desktop.
Connection to the MtGox websocket using node.js Websocket library: https://github.com/Worlize/WebSocket-Node
var websocket = require('websocket');
var client = new websocket.client();
client.on('connectFailed', function() { console.log(arguments); });
client.on('connect', function(conn) {
console.log('connected!');
conn.on('message', function(message) {
console.log(message);
});
});
client.connect('wss://websocket.mtgox.com:443/mtgox', [], 'test.com:80');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment