lib/gcli/connectors/websocket.js
function WebsocketConnection(socket, url) {
  this.socket = socket;
  this.url = url;

  this.deferreds = {};
  this.nextRequestId = 0;

  this.onReply = this.onReply.bind(this);
  this.onEvent = this.onEvent.bind(this);
}
function WebsocketConnection(socket, url) {
  this.socket = socket;
  this.url = url;

  this.deferreds = {};
  this.nextRequestId = 0;

  this.onReply = this.onReply.bind(this);
  this.onEvent = this.onEvent.bind(this);
}
function WebsocketConnection ( socket , url ) { this . socket = socket ; this . url = url ; this . deferreds = { } ; this . nextRequestId = 0 ; this . onReply = this . onReply . bind ( this ) ; this . onEvent = this . onEvent . bind ( this ) ; }
Handle a 'session' in which we make a number of calls
Handle a session in which we make a number of calls