Sha256: b1d3d27bbea29c471d71a556f3d5ffc4246e755bf7cd3e4fe8df2d9fba0e17fe
Contents?: true
Size: 969 Bytes
Versions: 1
Compression:
Stored size: 969 Bytes
Contents
# frozen_string_literal: true require 'grpc_kit/interceptors/streaming' module GrpcKit module Interceptors module Client class ServerStreamer < Streaming private def invoke(interceptor, call, metadata) # We don't need a `:request` parameter but, # it shuoldn't remove from paramters due to having a compatibility of grpc gem. interceptor.server_streamer(request: nil, call: call, method: call.method, metadata: metadata) do yield(call, metadata) end end end end module Server class ServerStreamer < Streaming def invoke(interceptor, call) # We don't need a `:request` parameter but, # it shuoldn't remove from paramters due to having a compatibility of grpc gem. interceptor.server_streamer(request: nil, call: call, method: call.method) do yield(call) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grpc_kit-0.1.3 | lib/grpc_kit/interceptors/server_streamer.rb |