Class: Rdb::DebugServer

Inherits:
Sinatra::Application
  • Object
show all
Includes:
Sinatra::SSE
Defined in:
lib/rdb/web/server.rb

Instance Method Summary collapse

Constructor Details

#initializeDebugServer

Returns a new instance of DebugServer.



52
53
54
55
56
57
58
59
60
# File 'lib/rdb/web/server.rb', line 52

def initialize
  super

  @events = EventManager.new
  @target = CommandTarget.new(@events)
  Thread.new do
    @target.connect_listen('localhost', 4444)
  end
end