Sha256: 32f8ca707fa4cf00cd0152dabab601db462a197315691ae069d9d59e8df2a0a6

Contents?: true

Size: 550 Bytes

Versions: 1

Compression:

Stored size: 550 Bytes

Contents

# frozen_string_literal: true

require 'grpc_kit/rpcs'
require 'grpc_kit/calls/client_client_streamer'

module GrpcKit
  module Rpcs::Client
    class ClientStreamer < GrpcKit::Rpcs::ClientRpc
      def invoke(stream, _request, metadata: {}, timeout: nil)
        call = GrpcKit::Calls::Client::ClientStreamer.new(
          metadata: metadata,
          config: @config,
          timeout: timeout,
          stream: stream,
        )

        @config.interceptor.intercept(call, metadata) do |s|
          s
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grpc_kit-0.1.4 lib/grpc_kit/rpcs/client_client_streamer.rb