terminateSession

suspend fun terminateSession(sessionStatus: SessionStatus = SessionStatus.SessionTermination)

Terminate the session, send a status code to the holder, and close data transport.

Parameters

sessionStatus

the status code sent to the holder.

Throws

After handling session termination, thrown to indicate that the sessionStatus code has been sent.

Exceptions during the sendData call are Ignored.