function(room, sockets) {
	// create a new crafty instance
	var Crafty = craftyLib();
	// add net features to crafty
	craftyNet.__addNet(Crafty, "SERVER", room);
	
	// initialize server send list
	craftyNet.__setServerOutputSockets(Crafty, sockets);

	return Crafty;
}
function(room, sockets) {
	
	var Crafty = craftyLib();
	
	craftyNet.__addNet(Crafty, "SERVER", room);
	
	
	craftyNet.__setServerOutputSockets(Crafty, sockets);

	return Crafty;
}
function ( room , sockets ) { // create a new crafty instance var Crafty = craftyLib ( ) ; // add net features to crafty craftyNet . __addNet ( Crafty , "SERVER" , room ) ; // initialize server send list craftyNet . __setServerOutputSockets ( Crafty , sockets ) ; return Crafty ; }
Construct a Crafty server instance with net features enabled.
<br />
Each server instance shall have an unique <code>room</code> name.
Only client and server instances within the same <code>room</code> can talk to each other.
<br />
This method also set's the server instance's [label]{@link module:"npm_crafty.net"#PeerLabel} to <code>"SERVER"</code>.

@memberof module:"npm_crafty.server"~Server#
@param {!module:"npm_crafty.net"#RoomName} room - the room to use for this server instance
@returns {!external:CraftyJS.Crafty} the newly created crafty client instance with net features enabled
@see external:CraftyJS.Crafty#define

@example
var Server = require('npm_crafty')(io.sockets);
var Crafty = Server.createInstance("Room1");
Construct a Crafty server instance with net features enabled . <br / > Each server instance shall have an unique <code > room< / code > name . Only client and server instances within the same <code > room< / code > can talk to each other . <br / > This method also set s the server instance s [ label ] { @link module : npm_crafty . net #PeerLabel } to <code > SERVER < / code > .