Sha256: 7199407a8afa5369f52b6fbccabb12900a21b55f062289b34b507c9ed1d2212a

Contents?: true

Size: 470 Bytes

Versions: 5

Compression:

Stored size: 470 Bytes

Contents

# frozen_string_literal: true

require 'grpc_kit/interceptors'

module GrpcKit
  module Interceptors::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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
grpc_kit-0.1.8 lib/grpc_kit/interceptors/server_server_streamer.rb
grpc_kit-0.1.7 lib/grpc_kit/interceptors/server_server_streamer.rb
grpc_kit-0.1.6 lib/grpc_kit/interceptors/server_server_streamer.rb
grpc_kit-0.1.5 lib/grpc_kit/interceptors/server_server_streamer.rb
grpc_kit-0.1.4 lib/grpc_kit/interceptors/server_server_streamer.rb