send

abstract suspend fun send(json: String)

Writes a raw JSON string to the underlying transport.

JsonRpc guarantees that this function is never called concurrently — all sends are serialized internally. The implementation only needs to forward the string to the transport.

Parameters

json

A fully serialized JSON-RPC message ready to be sent over the wire.