dist/monitor-all.js
function(options) {
      var t = this;
      options.gateway = false;     // New connection can't be an inbound gateway
      options.firewall = true;     // Gateways are for outbound requests only
      return t.defaultGateway = t.addConnection(options);
    }
function(options) {
      var t = this;
      options.gateway = false;     // New connection can't be an inbound gateway
      options.firewall = true;     // Gateways are for outbound requests only
      return t.defaultGateway = t.addConnection(options);
    }
function ( options ) { var t = this ; options . gateway = false ; // New connection can't be an inbound gateway options . firewall = true ; // Gateways are for outbound requests only return t . defaultGateway = t . addConnection ( options ) ; }
Set the default gateway server

The gateway server is used if a monitor cannot connect directly with the
server hosting the probe.

When a monitor is requested to connect with a probe on a specific server,
a direct connection is attempted.  If that direct connection fails, usually
due to a firewall or browser restriction, the monitor will attempt the
connection to the probe through the gateway server.

The server specified in this method must have been started as a gateway
like this:

// Start a monitor server and act as a gateway
var server = new Monitor.Server({gateway:true});

@method setGateway
@param options {Object} - Connection parameters
@param options.hostName {String} - Name of the gateway host
@param options.hostPort {Integer} - Port number to connect with
@param options.url {String} - The URL used to connect (created, or used if supplied)
@param options.socket {io.socket} - Pre-connected socket.io socket to the gateway server.
@return connection {Connection} - The connection with the gateway server
Set the default gateway server