Skip to content

Instantly share code, notes, and snippets.

@gistlyn gistlyn/main.rb
Created Dec 31, 2019

What would you like to do?
Ruby Google protoc insecure GrpcServices Client TodoWorld Example
#!/usr/bin/env ruby
this_dir = File.expand_path(File.dirname(__FILE__))
lib_dir = File.join(this_dir, 'lib')
$LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
require 'grpc'
require 'services_pb'
require 'services_services_pb'
def main
client ='',
response = client.get_hello('gRPC Ruby'))
puts response.Result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.