Class: WildSoNet::Streamer::Receiver

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

Instance Method Summary collapse

Constructor Details

#initializeReceiver

Returns a new instance of Receiver.



56
57
58
59
60
61
62
63
64
# File 'lib/server.rb', line 56

def initialize
  @thread = Thread.new do
    while true
      msg = WildSoNet::Hazelcast.queue("streamer").take()
      msg = Marshal.load(msg)
      WildSoNet::Streamer::Server.push(msg[0], msg[1])
    end
  end
end