Class: GrpcKit::Rpcs::Client::ServerStreamer
- Inherits:
-
GrpcKit::Rpcs::ClientRpc
- Object
- GrpcKit::Rpcs::ClientRpc
- GrpcKit::Rpcs::Client::ServerStreamer
- Defined in:
- lib/grpc_kit/rpcs/client_server_streamer.rb
Instance Attribute Summary
Attributes inherited from GrpcKit::Rpcs::ClientRpc
Instance Method Summary collapse
Methods inherited from GrpcKit::Rpcs::ClientRpc
Constructor Details
This class inherits a constructor from GrpcKit::Rpcs::ClientRpc
Instance Method Details
#invoke(stream, request, metadata: {}, timeout: nil) ⇒ GrpcKit::Calls::Client::ServerStreamer
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/grpc_kit/rpcs/client_server_streamer.rb', line 14 def invoke(stream, request, metadata: {}, timeout: nil) call = GrpcKit::Calls::Client::ServerStreamer.new( metadata: , config: @config, timeout: timeout, stream: stream, ) if @config.interceptor @config.interceptor.intercept(call, ) do |c| c.send_msg(request) c end else call.send_msg(request) call end end |