code: function Socket(nsp, client, query){
    this.nsp = nsp;
    this.server = nsp.server;
    this.adapter = this.nsp.adapter;
    this.id = nsp.name !== '/' ? nsp.name + '#' + client.id : client.id;
    this.client = client;
    this.conn = client.conn;
    this.rooms = {};
    this.acks = {};
    this.connected = true;
    this.disconnected = false;
    this.handshake = this.buildHandshake(query);
    this.fns = [];
    this.flags = {};
    this._rooms = [];
  }
docs: Interface to a `Client` for a given `Namespace`.
  
  @param {Namespace} nsp
  @param {Client} client
  @api public