Clients - grpc : StreamingClient

Provides the gRPC streaming client actions for interacting with gRPC server.

Remote Methods

send

Sends request message to the server.

complete

Informs the server, caller finished sending messages.

sendError

Sends error message to the server.

send

(anydata res)

returns Error?

Sends request message to the server.

Parameters

  • res anydata
  • The inbound request message.

  • Return Type

    (Error?)
  • Returns an error if encounters an error while sending the response, returns nil otherwise.

complete

()

returns Error?

Informs the server, caller finished sending messages.

  • Return Type

    (Error?)
  • Returns an error if encounters an error while sending the response, returns nil otherwise.

sendError

(int statusCode, string message)

returns Error?

Sends error message to the server.

Parameters

  • statusCode int
  • Error status code.

  • message string
  • Error message.

  • Return Type

    (Error?)
  • Returns an error if encounters an error while sending the response, returns nil otherwise.