require_relative "./app_callback_service" $stdout.sync = true port = '0.0.0.0:50051' s = GRPC::RpcServer.new s.add_http2_port(port, :this_port_is_insecure) GRPC.logger.info("... running insecurely on #{port}") service = AppCallbackService s.handle(service) # 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 s.run_till_terminated_or_interrupted([1, 'int', 'SIGQUIT'])