Class: RhetButler::FollowerSession

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



20
21
22
23
24
# File 'lib/rhet-butler/messaging.rb', line 20

def close(*args)
  log_info("Follower closed socket")
  @queue.unsubscribe(self)
  super
end

#openedObject



15
16
17
18
# File 'lib/rhet-butler/messaging.rb', line 15

def opened
  log_info("Follower opened socket")
  @queue.subscribe(self)
end