Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael michaeljohnbennett

  • Sydney, AU
View GitHub Profile
@michaeljohnbennett
michaeljohnbennett / socket_orderbook.js
Created Nov 1, 2018 — forked from hitbtc-com/socket_orderbook.js
Socket API example with orderbook
View socket_orderbook.js
if (typeof WebSocket !== 'function') {
// for node.js install ws package
WebSocket = require('ws');
}
const logger = {
debug: (...arg) => {
// console.log((new Date).toISOString(), 'DEBUG', ...arg)
},
info: (...arg) => {
You can’t perform that action at this time.