sendMessage

fun <TRequest : GeneratedMessage.Builder<TRequest>> sendMessage(rpcName: String, message: GeneratedMessage): AsyncJobSingle<ServiceMethodResponse>

Sends a message. Results are returned in a ServiceMethodResponse.

Return

The JobID of the request. This can be used to find the appropriate ServiceMethodResponse.

Parameters

rpcName

Name of the RPC endpoint. Takes the format ServiceName.RpcName

message

The message to send.

TRequest

The type of protobuf object.