updateStreamingConnectionAuthenticationKey method
Updates the authentication key if the streaming connection is open.
Implementation
Future<void> updateStreamingConnectionAuthenticationKey(
String? authKey,
) async {
if (streamingConnectionStatus == StreamingConnectionStatus.disconnected) {
return;
}
await _sendControlCommandToStream('auth', {'key': authKey});
}