Class: Als::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/als/server.rb

Class Method Summary collapse

Class Method Details

.startObject



9
10
11
12
13
14
15
# File 'lib/als/server.rb', line 9

def self.start
    port = ENV["PORT"] ? ENV["PORT"] : '0.0.0.0:3000'
    s = GRPC::RpcServer.new
    s.add_http2_port(port, :this_port_is_insecure)
    s.handle(ServerImpl.new)
    s.run_till_terminated_or_interrupted([1, 'int', 'SIGQUIT'])
end