Sha256: 22c615e4b8ae7f0944cc38704cbed0d885ddfe26ece2dd2f0a731a03122f95f4
Contents?: true
Size: 556 Bytes
Versions: 1
Compression:
Stored size: 556 Bytes
Contents
# frozen_string_literal: true require 'grpc_kit/rpcs' require 'grpc_kit/calls/client_server_streamer' module GrpcKit module Rpcs::Client class ServerStreamer < GrpcKit::Rpcs::ClientRpc def invoke(stream, request, metadata: {}, timeout: nil) call = GrpcKit::Calls::Client::ServerStreamer.new(metadata: metadata, config: @config, timeout: timeout, stream: stream) @config.interceptor.intercept(call, metadata) do |c, m| c.send_msg(request, metadata: m, last: true) c 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_server_streamer.rb |