nl_tokens: 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 > .
pl_tokens: function ( room , sockets ) { // create a new crafty instance <mask> Crafty = craftyLib ( ) ; // add net features to crafty craftyNet . __addNet ( Crafty , "SERVER" , room ) ; // initialize server send list craftyNet . __setServerOutputSockets ( Crafty , sockets ) ; return Crafty ; }