connect method
Future<void>
connect({
- required FutureOr<
void> onSocketData(- Uint8List data
- required FutureOr<
void> onSocketConnection(- SocketConnection socketConnection
- 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;
}