Class: WildSoNet::Streamer::Receiver
- Inherits:
-
Object
- Object
- WildSoNet::Streamer::Receiver
- Defined in:
- lib/server.rb
Instance Method Summary collapse
-
#initialize ⇒ Receiver
constructor
A new instance of Receiver.
Constructor Details
#initialize ⇒ Receiver
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 |