Running a test against the local machine for 10000 connections and it crashes. I'm reasonably certain that the crash is caused by the server not handling 10000 connections but the wsst.js
script crashes with this error message. It would be nice if it gave more information.
...
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: connect EADDRINUSE
at errnoException (net.js:640:11)
at connect (net.js:523:18)
at net.js:581:9
at asyncCallback (dns.js:84:16)
at Object.onanswer [as oncomplete] (dns.js:137:9)
exports.init = function (ws, api) {
ws.on('message', function (message) {
var obj = JSON.parse(message);
if (obj.type === 'subscribe') {
api.checkpoint('got welcome');
} else if (obj.type === 'error') {
api.checkpoint('got error');
ws.close();
}
});
ws.send('0');
api.checkpoint('sent invalid message');
}