Method: Orator::Server#run

Defined in:
lib/orator/server.rb

#run(&block) ⇒ Object

Runs the server with the given options.



31
32
33
34
# File 'lib/orator/server.rb', line 31

def run(&block)
  @event_handler = EventHandler.new(&block)
  EM::WebSocket.start(@options, &method(:handle_socket))
end