react

js
suspend fun react(recipient: Recipient, reaction: <ERROR CLASS>, timestamp: Long = Clock.System.now().toEpochMilliseconds()): <ERROR CLASS>

Reacts to a previous message.

Throws

RequestFailedException

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

SignaldException

if the request to the socket fails

synchronousClient
fun react(recipient: Recipient, reaction: JsonReaction, timestamp: Long = Clock.System.now().toEpochMilliseconds()): SendResponse

Reacts to a previous message.

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