listen method

Future<void> listen(
  1. dynamic host,
  2. int port, [
  3. Map? opts
])

Attaches socket.io to a port.

Implementation

Future<void> listen(dynamic host, int port, [Map? opts]) async {
  await _attach(host, port, opts);
}