Client: Caller
The base client used in the generated client code to provide remote functions for interacting with the caller.
Remote Methods
Methods
getId | Returns the unique identification of the caller. |
isCancelled | Checks whether the connection is closed by the caller. |
Fields
send
function send(anydata res) returns Error?
Isolated Function
Remote Function
Sends the outbound response to the caller.
1grpc:Error? err = caller->send(message);
Parameters
- res anydata
- The outbound response message
sendError
Isolated Function
Remote Function
Sends a server error to the caller.
1grpc:Error? result = caller->sendError(error grpc:AbortedError("Operation aborted"));
Parameters
- err Error
Error instance.