Clients - grpc : StreamingClient

Provides the gRPC actions for interacting with gRPC server.

send

(any res)

returns error?

Sends request message to the server.

Parameters

  • res any
  • 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.