terminateSession method

Future<void> terminateSession({
  1. int? sessionKey,
  2. String? sessionId,
  3. String? message,
})

Handler for terminate_session.

Stop a streaming session.

Required Parameters:

  • sessionKey: Session key for the session info to terminate, OR
  • sessionId: Session ID for the session info to terminate

Optional parameters:

  • message: Message to show user for reason of termination

Implementation

Future<void> terminateSession({
    int? sessionKey,
    String? sessionId,
    String? message,
}) async => _commandTerminateSession(_client, sessionKey: sessionKey, sessionId: sessionId, message: message);