send

open suspend override fun send(message: JSONRPCMessage, options: TransportSendOptions? = null)(source)

Sends a JSON-RPC message (request or response).

Parameters

message

the JSON-RPC message to send, either a request or a response

options

optional transport-specific options that control sending behavior; different transport implementations may support different options