Socket constructor

Socket(
  1. Namespace nsp,
  2. Client client,
  3. dynamic query
)

Implementation

Socket(this.nsp, this.client, query) {
  server = nsp.server;
  adapter = nsp.adapter;
  id = client.id;
  request = client.request;
  conn = client.conn;
  handshake = buildHandshake(query);
}