backend/bin/grpc_server.rb
# main starts an RpcServer that receives requests to GreeterServer at the sample
# server port.
main starts an RpcServer that receives requests to GreeterServer at the sample
server port.
main starts an RpcServer that receives requests to GreeterServer at the sample server port .
def main
  s = GRPC::RpcServer.new(interceptors: [Interceptor::LoggingInterceptor.new])
  s.add_http2_port('0.0.0.0:3000', :this_port_is_insecure)
  GrpcServices.services.each {|service| s.handle(service) }
  s.run_till_terminated_or_interrupted([1, 'int', 'SIGQUIT'])
end
def main s = GRPC :: RpcServer . new ( interceptors : [ Interceptor :: LoggingInterceptor . new ] ) s . add_http2_port ( '0.0.0.0:3000' , :this_port_is_insecure ) GrpcServices . services . each { | service | s . handle ( service ) } s . run_till_terminated_or_interrupted ( [ 1 , 'int' , 'SIGQUIT' ] ) end
main starts an RpcServer that receives requests to GreeterServer at the sample
server port.
main starts an RpcServer that receives requests to GreeterServer at the sample server port .
# Runs the server with SIGHUP, SIGINT and SIGQUIT signal handlers to  #   gracefully shutdown. # User could also choose to run server via call to run_till_terminated