io function

Socket io(
  1. dynamic uri, [
  2. dynamic opts
])

Looks up an existing Manager for multiplexing. If the user summons:

io('http://localhost/a'); io('http://localhost/b');

We reuse the existing instance based on same scheme/port/host, and we initialize sockets for each namespace.

@api public

Implementation

Socket io(uri, [opts]) => _lookup(uri, opts);