lib/connectors/commands/handshake.js
function(opts) {
  opts = opts || {};
  this.userHandshake = opts.handshake;

  if(opts.heartbeat) {
    this.heartbeatSec = opts.heartbeat;
    this.heartbeat = opts.heartbeat * 1000;
  }

  this.checkClient = opts.checkClient;

  this.useDict = opts.useDict;
  this.useProtobuf = opts.useProtobuf;
  this.useCrypto = opts.useCrypto;
}
function(opts) {
  opts = opts || {};
  this.userHandshake = opts.handshake;

  if(opts.heartbeat) {
    this.heartbeatSec = opts.heartbeat;
    this.heartbeat = opts.heartbeat * 1000;
  }

  this.checkClient = opts.checkClient;

  this.useDict = opts.useDict;
  this.useProtobuf = opts.useProtobuf;
  this.useCrypto = opts.useCrypto;
}
function ( opts ) { opts = opts || { } ; this . userHandshake = opts . handshake ; if ( opts . heartbeat ) { this . heartbeatSec = opts . heartbeat ; this . heartbeat = opts . heartbeat * 1000 ; } this . checkClient = opts . checkClient ; this . useDict = opts . useDict ; this . useProtobuf = opts . useProtobuf ; this . useCrypto = opts . useCrypto ; }
Process the handshake request.

@param {Object} opts option parameters
opts.handshake(msg, cb(err, resp)) handshake callback. msg is the handshake message from client.
opts.hearbeat heartbeat interval (level?)
opts.version required client level
Process the handshake request .