tuweni / org.apache.tuweni.scuttlebutt.rpc / RPCStreamRequest / toEncodedRpcMessage

toEncodedRpcMessage

open fun toEncodedRpcMessage(mapper: ObjectMapper!): Bytes! (source)

Encodes message to bytes

Parameters

mapper - ObjectMapper!: the JSON mapper

Exceptions

JsonProcessingException - if an error was thrown while marshalling to JSON

Return
Bytes!: The byte representation for the request after it is marshalled into a JSON string.