Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env node
// to run install: nodejs and the module "websocket"
// npm install websocket
// then execute
// node tester.js _NUMBER_OF_CLIENTS_
var WebSocketClient = require('websocket').client;
var HOST = 'ws://localhost:8449/ws/endpoint';
var PING_TIME_MS = 20000;