Sha256: 924502ca2d87477acd356ef68c6af45dc2dfa0b795f8414e0102cafee1abd3f1
Contents?: true
Size: 815 Bytes
Versions: 1
Compression:
Stored size: 815 Bytes
Contents
# frozen_string_literal: true require 'grpc_kit/calls' module GrpcKit module Calls::Server class ClientStreamer < GrpcKit::Calls::Call attr_reader :deadline, :metadata attr_reader :outgoing_initial_metadata, :outgoing_trailing_metadata alias incoming_metadata metadata def initialize(*) super @outgoing_initial_metadata = {} @outgoing_trailing_metadata = {} end def send_msg(data, last: false) raise 'No method error' if @restrict @stream.send_msg(data, @protobuf, last: last, limit_size: @config.max_send_message_size) end def recv(last: false) raise 'No method error' if @restrict @stream.recv_msg(@protobuf, last: last, limit_size: @config.max_receive_message_size) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grpc_kit-0.1.4 | lib/grpc_kit/calls/server_client_streamer.rb |