Class: RhetButler::LeaderSession

Inherits:
QueueSession
  • Object
show all
Defined in:
lib/rhet-butler/messaging.rb

Instance Method Summary collapse

Methods inherited from QueueSession

#initialize

Constructor Details

This class inherits a constructor from RhetButler::QueueSession

Instance Method Details

#close(*args) ⇒ Object



32
33
34
# File 'lib/rhet-butler/messaging.rb', line 32

def close(*args)
  log_info("Leader closed socket")
end

#openedObject



28
29
30
# File 'lib/rhet-butler/messaging.rb', line 28

def opened
  log_info("Leader opened socket")
end

#process_message(message) ⇒ Object



36
37
38
39
40
# File 'lib/rhet-butler/messaging.rb', line 36

def process_message(message)
  log_info("Leader moved to slide #{message}")
  @queue.current_slide = message
  @queue.enqueue(message)
end