Socket constructor
Socket(
- String id,
- Server server,
- Transport transport,
- 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();
}