Clients -
grpc :
Caller
Provides the gRPC remote functions for interacting with caller.
Remote Methods
Sends outbound response to the caller.
Informs the caller, server finished sending messages.
Checks whether the connection is closed by the caller.
Sends server error to the caller.
Methods
Fields
Sends outbound response to the caller.
Parameters
- res any
-
- The outbound response message.
- headers Headers? - ()
-
- Optional headers parameter. Passes header value if needed. Default sets to nil.
-
Return Type
(error?) - Returns an error if encounters an error while sending the response, returns nil otherwise.
Informs the caller, server finished sending messages.
-
Return Type
(error?) Returns an error if encounters an error while sending the response, returns nil otherwise.
Checks whether the connection is closed by the caller.
-
Return Type
(boolean) Returns true, if caller already closed the connection. false otherwise.
Sends server error to the caller.
Parameters
- statusCode int
-
Error status code.
- message string
-
Error message.
- headers Headers? - ()
-
Optional headers parameter. Passes header value if needed. Default sets to nil.
-
Return Type
(error?) Returns an error if encounters an error while sending the response, returns nil otherwise.