Created
April 26, 2013 04:25
-
-
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
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 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