Sha256: 4a12a63a5a7e6ce87b4ca988ac1de006da70ca6cd50e2e53f35f9294879e52a4

Contents?: true

Size: 377 Bytes

Versions: 5

Compression:

Stored size: 377 Bytes

Contents

# frozen_string_literal: false

$LOAD_PATH.unshift File.expand_path('./examples/helloworld')

require 'grpc_kit'
require 'socket'
require 'pry'
require 'helloworld_services_pb'

HOST = 'localhost'
PORT = 50051

sock = TCPSocket.new(HOST, PORT)
stub = Helloworld::Greeter::Stub.new(sock)
message = stub.say_hello(Helloworld::HelloRequest.new(name: 'ganmacs')).message
p message

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
grpc_kit-0.1.8 examples/helloworld_client.rb
grpc_kit-0.1.7 examples/helloworld_client.rb
grpc_kit-0.1.6 examples/helloworld_client.rb
grpc_kit-0.1.5 examples/helloworld_client.rb
grpc_kit-0.1.4 examples/helloworld_client.rb