WebSocketManager class

Constructors

WebSocketManager(OmiConfig _config)

Properties

audioPacketsSent int
no setter
hashCode int
The hash code for this object.
no setterinherited
messageStream Stream<Map<String, dynamic>>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state WebSocketState
no setter
stateStream Stream<WebSocketState>
no setter
totalAudioBytesSent int
no setter

Methods

connect({required AudioCodec codec, required int sampleRate, String language = 'en-US', String? userId, bool includeSpeechProfile = true, String? websocketUrl, String? apiKey, Map<String, String>? customHeaders, Map<String, String>? customParams}) Future<void>
disconnect({String? reason}) Future<void>
dispose() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendAudio(List<int> audioData) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited