Sha256: 1512c4c9125537509f3b55e50629841198bc4c832bc9d370b31acf0cfc0ecdfa
Contents?: true
Size: 805 Bytes
Versions: 15
Compression:
Stored size: 805 Bytes
Contents
# frozen_string_literal: true require 'grpc_kit/rpcs' require 'grpc_kit/calls/server_bidi_streamer' module GrpcKit module Rpcs::Server class BidiStreamer < GrpcKit::Rpcs::ServerRpc # @param stream [GrpcKit::Stream::ServerStream] # @param metadata [Hash<String, String>] # @return [void] def invoke(stream, metadata: {}) call = GrpcKit::Calls::Server::BidiStreamer.new( metadata: metadata, config: @config, stream: stream, ) if @config.interceptor @config.interceptor.intercept(call) do |c| @handler.send(@config.ruby_style_method_name, c) end else @handler.send(@config.ruby_style_method_name, call) end stream.send_status end end end end
Version data entries
15 entries across 15 versions & 1 rubygems