Class: GrpcKit::Interceptors::Server::ClientStreamer

Inherits:
Streaming
  • Object
show all
Defined in:
lib/grpc_kit/interceptors/server_client_streamer.rb

Instance Method Summary collapse

Methods inherited from Streaming

#initialize, #intercept

Constructor Details

This class inherits a constructor from GrpcKit::Interceptors::Server::Streaming

Instance Method Details

#invoke(interceptor, call) ⇒ Object



10
11
12
13
14
# File 'lib/grpc_kit/interceptors/server_client_streamer.rb', line 10

def invoke(interceptor, call)
  interceptor.client_streamer(call: call, method: call.method) do |new_call = nil|
    yield(new_call || call)
  end
end