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

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

Instance Attribute Summary

Attributes inherited from GrpcKit::Calls::Call

#metadata, #method, #method_name, #service_name

Instance Method Summary collapse

Methods inherited from GrpcKit::Calls::Call

#deadline, #initialize, #normal_mode, #restrict_mode

Constructor Details

This class inherits a constructor from GrpcKit::Calls::Call

Instance Method Details

#recv(last: false) ⇒ Object


21
22
23
24
25
# File 'lib/grpc_kit/calls/client_request_response.rb', line 21

def recv(last: false)
  raise 'No method error' if @restrict

  @stream.recv_msg(last: last)
end

#send_msg(data, last: false) ⇒ void


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

def send_msg(data, last: false)
  raise 'No method error' if @restrict

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