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
#!/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; |