Creates clients, connects them to your server and returns the objects on both sides

npm install
4 downloads in the last week
9 downloads in the last month pool for testing

This module creates a set of sockets and returns both the client-side and server-side sockets. It is mainly meant for testing apps.


npm install


var createsocketiopool = require('../src/');
createsocketiopool(socketioServer, serverAddress, numberOfSockets, callback);


var createsocketiopool = require('');

var ioserver = require('').listen(3006);

createsocketiopool(ioserver, 'http://localhost:3006', 4, function(err, result) {

    clientSockets = result[0];
    serverSockets = result[1];
    serverSockets[2].on('hello', function() { console.log('it works!'); });

npm loves you