lib/npm_crafty.server.js
function Server(sockets) {
	return {
		createInstance: function(room) {
			return createInstance(room, sockets);
		},
		addClient: addClient,
		removeClient: removeClient
	};
}
function Server(sockets) {
	return {
		createInstance: function(room) {
			return createInstance(room, sockets);
		},
		addClient: addClient,
		removeClient: removeClient
	};
}
The Server API.
<br />
Can be constructed with this constructor or by calling the [default setup method]{@link module:"npm_crafty.server"~Server.setupDefault}.
After construction, various methods are available for creating a crafty server instance with net features and for connecting these net features to socket.io.
<br />
Also offers a static method for [automatic matchmaking](module:"npm_crafty.server"~Server.MatchMaker).
<br />
The <code>sockets</code> parameter contains the Socket.IO namespace to use for all Crafty related data.

@class
@param {!external:Sockets} sockets - the socket namespace to use for all Crafty-related communication
@property {object} [app] - the express application instance; only available after calling the [default setup method]{@link module:"npm_crafty.server"~Server.setupDefault}
@property {object} [server] - the http server instance; only available after calling the [default setup method]{@link module:"npm_crafty.server"~Server.setupDefault}
@property {object} [io] - the socket.io instance; only available after calling the [default setup method]{@link module:"npm_crafty.server"~Server.setupDefault}

@example
var Server = require('npm_crafty')(io.of("/crafty"));