For anyone following from home, I hacked up a solution that seems to
work.
I modified now/lib/nodeclient/now.js in a couple ways:
- Get rid of the code that returns an existing now instance for the
same URI, i.e. get rid of:
if (Object.prototype.hasOwnProperty.call(nowObjects, uri)) {
return nowObjects[uri];
}
- Force
socket.io to create a new connection for the same URI, rather
than reusing an existing one:
var socket = io.connect(uri, { 'force new connection': true });
Now I can stress test my node server using now, which is really neat.
Would love to hear if there's a better way of doing this!