updateStreamingConnectionAuthenticationKey method

Future<void> updateStreamingConnectionAuthenticationKey(
  1. String? authKey
)

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});
}