Sha256: 4cff19d7f1a785805978489663eb01698b6de15fae4a30db3a2d53e100c56f82

Contents?: true

Size: 376 Bytes

Versions: 21

Compression:

Stored size: 376 Bytes

Contents

# frozen_string_literal: true

$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

21 entries across 21 versions & 1 rubygems

Version Path
grpc_kit-0.5.1 examples/helloworld_client.rb
grpc_kit-0.5.0 examples/helloworld_client.rb
grpc_kit-0.4.0 examples/helloworld_client.rb
grpc_kit-0.3.9 examples/helloworld_client.rb
grpc_kit-0.3.8 examples/helloworld_client.rb
grpc_kit-0.3.7 examples/helloworld_client.rb
grpc_kit-0.3.6 examples/helloworld_client.rb
grpc_kit-0.3.5 examples/helloworld_client.rb
grpc_kit-0.3.4 examples/helloworld_client.rb
grpc_kit-0.3.3 examples/helloworld_client.rb
grpc_kit-0.3.2 examples/helloworld_client.rb
grpc_kit-0.3.1 examples/helloworld_client.rb
grpc_kit-0.3.0 examples/helloworld_client.rb
grpc_kit-0.2.1 examples/helloworld_client.rb
grpc_kit-0.2.0 examples/helloworld_client.rb
grpc_kit-0.1.14 examples/helloworld_client.rb
grpc_kit-0.1.13 examples/helloworld_client.rb
grpc_kit-0.1.12 examples/helloworld_client.rb
grpc_kit-0.1.11 examples/helloworld_client.rb
grpc_kit-0.1.10 examples/helloworld_client.rb