SocketIoConnector constructor

SocketIoConnector(
  1. String host, {
  2. Map<String, String>? authHeaders,
  3. String? namespace,
  4. bool autoConnect = true,
  5. Map moreOptions = const {},
})

Implementation

SocketIoConnector(
  String host, {
  Map<String, String>? authHeaders,
  String? namespace,
  bool autoConnect = true,
  Map moreOptions = const {},
}) : super(ConnectorOptions(
        client: io(host, {
          'autoConnect': autoConnect,
          ...moreOptions,
          'auth': {'headers': authHeaders},
        }),
        authHeaders: authHeaders,
        nameSpace: namespace,
      ));