Skip to content

Instantly share code, notes, and snippets.

View marcusjang's full-sized avatar

Marcus Jang marcusjang

View GitHub Profile
const API_PORT = 14265;
const DELAY = 5; // in miliseconds
// Necessary libraries
const http = require('http');
const pool = new http.Agent({ maxSockets: 64 });
const zmq = require('zeromq');
const sock = zmq.socket('pub');
const Converter = require('./lib/converter.js'); // from iota.lib.js