Socket constructor

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

Implementation

Socket(this.io, this.nsp, this.opts) {
  json = this; // compat
  if (opts != null) {
    query = opts!['query'];
  }
  if (io.autoConnect) open();
}