Class: Mutx::Workers::Listener
- Inherits:
-
Object
- Object
- Mutx::Workers::Listener
- Includes:
- Sidekiq::Worker
- Defined in:
- lib/mutx/background_jobs/workers/listener.rb
Instance Method Summary collapse
Instance Method Details
#perform(result_id) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/mutx/background_jobs/workers/listener.rb', line 9 def perform(result_id) tcp_port = result.id.to_s[-4..-1].to_i #server = TCPServer.new tcp_port # Server bound to port tcp_port ########################### #begin # server = TCPServer.new tcp_port # Server bound to port tcp_port @running = true Thread.start("#{result.mutx_command}") do |command| end end |