Class: StompingGround::Server
- Inherits:
-
Object
- Object
- StompingGround::Server
- Defined in:
- lib/stomping_ground/server.rb
Instance Method Summary collapse
-
#initialize(host, port) ⇒ Server
constructor
A new instance of Server.
- #start(options = {}) ⇒ Object
Constructor Details
#initialize(host, port) ⇒ Server
Returns a new instance of Server.
92 93 94 95 |
# File 'lib/stomping_ground/server.rb', line 92 def initialize(host, port) @host = host @port = port end |
Instance Method Details
#start(options = {}) ⇒ Object
97 98 99 100 101 102 103 104 105 |
# File 'lib/stomping_ground/server.rb', line 97 def start(={}) EventMachine.run { EventMachine.start_server @host, @port, StompingGround::Stomp do |server| server. = [:message] server.queue_name = [:queue_name] server. = [:sent_message_dir] end } end |