code: function createOptionsForServerSpec(serverSpec) {
      var options = {
          forceNew: true,            // Make a new connection each time
          reconnection: false        // Don't try and reconnect automatically
      };
  
      // If the server spec contains a socketResource setting we use
      // that otherwise leave the default ('/socket.io/')
      if(serverSpec.socket.socketResource) {
          options.resource = serverSpec.socket.socketResource;
      }
      return options;
  }
docs: Create the socket.io options for the specified server