Sha256: ee3c07f2a56f1fe9cdfb7729ac6deea6806e2aadb9eff67fa34725cd4be163e3
Contents?: true
Size: 699 Bytes
Versions: 5
Compression:
Stored size: 699 Bytes
Contents
# frozen_string_literal: true require 'grpc_kit/calls' module GrpcKit module Calls::Client class ServerStreamer < GrpcKit::Calls::Call alias outgoing_metadata metadata # @param data [Object] request message # @param last [Boolean] # @return [void] def send_msg(data, last: false) raise 'No method error' if @restrict @stream.send_msg(data, last: last, metadata: outgoing_metadata) end # @param last [Boolean] # @return [Object] response object def recv(last: false) raise 'No method error' if @restrict @stream.recv_msg(last: last) end def each # TODO end end end end
Version data entries
5 entries across 5 versions & 1 rubygems