Socket constructor

Socket(
  1. Manager io,
  2. String nsp,
  3. Map? _opts
)

Implementation

Socket(this.io, this.nsp, this._opts) {
  if (_opts != null) {
    query = _opts!['query'];
    auth = _opts!['auth'];
  }
  _opts ??= {};
  if (io.autoConnect) open();
}