Class: GrpcKit::Calls::Client::RequestResponse

Inherits:
GrpcKit::Call show all
Defined in:
lib/grpc_kit/calls/client_request_response.rb

Instance Attribute Summary

Attributes inherited from GrpcKit::Call

#metadata, #method, #method_name, #service_name

Instance Method Summary collapse

Methods inherited from GrpcKit::Call

#deadline, #initialize

Constructor Details

This class inherits a constructor from GrpcKit::Call

Instance Method Details

#recvObject

Returns response object.

Returns:

  • (Object)

    response object



18
19
20
# File 'lib/grpc_kit/calls/client_request_response.rb', line 18

def recv
  @stream.recv_msg(last: true)
end

#send_msg(data) ⇒ void

This method returns an undefined value.

Parameters:

  • data (Object)

    request message



13
14
15
# File 'lib/grpc_kit/calls/client_request_response.rb', line 13

def send_msg(data)
  @stream.send_msg(data, last: true, metadata: )
end