node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

Creates clients, connects them to your server and returns the objects on both sides 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!'); });