Socket constructor

Socket(
  1. String id,
  2. Server server,
  3. Transport transport,
  4. SocketConnect connect,
)

Implementation

Socket(this.id, this.server, this.transport, this.connect) {
  // Cache IP since it might not be in the req later
  remoteAddress = connect.request.connectionInfo!.remoteAddress;

  checkIntervalTimer = null;
  upgradeTimeoutTimer = null;
  pingTimeoutTimer = null;

  setTransport(transport);
  onOpen();
}