Sha256: 31b0e83f01df2d03a98db677a9dc5fac06cb9be291ab07e493428d825915ca95

Contents?: true

Size: 549 Bytes

Versions: 1

Compression:

Stored size: 549 Bytes

Contents

# frozen_string_literal: true

require 'grpc_kit/interceptors'

module GrpcKit
  module Interceptors::Client
    class BidiStreamer < Streaming
      private

      # @param interceptor [GrpcKit::GRPC::ClientInterceptor]
      # @param call [GrpcKit::Calls::Client::BidiStreamer]
      # @param metadata [Hash<String,String>]
      def invoke(interceptor, call, metadata)
        interceptor.bidi_streamer(requests: nil, call: call, method: call.method, metadata: metadata) do
          yield(call, metadata)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grpc_kit-0.1.9 lib/grpc_kit/interceptors/client_bidi_streamer.rb