connect method

Future<void> connect({
  1. required FutureOr<void> onSocketData(
    1. Uint8List data
    ),
  2. required FutureOr<void> onSocketConnection(
    1. SocketConnection socketConnection
    ),
  3. Duration delayDuration = const Duration(milliseconds: 500),
})

Implementation

Future<void> connect({
  // void Function(dynamic data)? onDataUpdate,
  // void Function(Map data)? onSocketConnection,
  required FutureOr<void> Function(Uint8List data) onSocketData,
  required FutureOr<void> Function(SocketConnection socketConnection)
      onSocketConnection,
  Duration delayDuration = const Duration(milliseconds: 500),
}) async {
  return;
}