lib/npm_crafty.server.js
function(Crafty, socket) {
	// add client to receive list
	craftyNet.__setInputSocket(Crafty, socket);
	// add client to send list
	craftyNet.__addOutputSocket(Crafty, socket);

	return Crafty;
}
function(Crafty, socket) {
	// add client to receive list
	craftyNet.__setInputSocket(Crafty, socket);
	// add client to send list
	craftyNet.__addOutputSocket(Crafty, socket);

	return Crafty;
}
Add a client <code>socket</code> to the Crafty server instance.
The Crafty net features will use this <code>socket</code> to communicate with the client.

@memberof module:"npm_crafty.server"~Server#
@param {!external:CraftyJS.Crafty} Crafty - the Crafty server instance to bind the socket to
@param {!external:Socket} socket - the socket to use for communication with a client
@returns {!external:CraftyJS.Crafty} the Crafty instance for method chaining

@example
var Server = require('npm_crafty')(io.sockets);
var Crafty = Server.createInstance("Room1");
Server.addClient(Crafty, socket);

@see module:"npm_crafty.server"~Server#removeClient