AudioWebSocketClient class
A WebSocket client implementation for handling real-time audio client connections.
Constructors
- AudioWebSocketClient({required String serverUrl, required void audioCallBackFunction(dynamic data), void onError(Object error)?})
- Constructor for AudioWebSocketClient.
Properties
- audioCallBackFunction → void Function(dynamic data)
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onError → void Function(Object error)?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverUrl → String
-
final
Methods
-
connect(
) → Future< void> - Connects to the WebSocket server.
-
disconnect(
) → Future< void> - Closes the WebSocket connection.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited