resetSession

js
suspend fun resetSession(address: <ERROR CLASS>, timestamp: Long = Clock.System.now().toEpochMilliseconds()): <ERROR CLASS>

Resets a secure session with a particular user identified by the given address.

Parameters

address

The user to reset session with

timestamp

The timestamp to use when resetting session. Defaults to now.

Throws

RequestFailedException

if signald sends an error response or the incoming message is invalid

SignaldException

if the request to the socket fails

synchronousClient
fun resetSession(address: JsonAddress, timestamp: Long = Clock.System.now().toEpochMilliseconds()): SendResponse

Resets a secure session with a particular user identified by the given address.

Parameters

address

The user to reset session with

timestamp

The timestamp to use when resetting session. Defaults to now.

Throws

org.inthewaves.kotlinsignald.clientprotocol.RequestFailedException

if signald sends an error response or the incoming message is invalid

org.inthewaves.kotlinsignald.clientprotocol.SignaldException

if the request to the socket fails