Class: Vines::Services::Controller::ProbesController
- Inherits:
-
BaseController
- Object
- BaseController
- Vines::Services::Controller::ProbesController
- Defined in:
- lib/vines/services/controller/probes_controller.rb
Overview
Reply to presence probes if the user has privilege to access the requested service JID. Reply to all probes to the component itself.
Instance Attribute Summary
Attributes inherited from BaseController
#node, #storage, #stream, #uploads
Instance Method Summary collapse
Methods inherited from BaseController
Constructor Details
This class inherits a constructor from Vines::Services::Controller::BaseController
Instance Method Details
#process ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/vines/services/controller/probes_controller.rb', line 11 def process from, to = node.from.stripped, node.to.stripped if approved? stream.write(available(to, from)) else stream.write(unsubscribed(to, from)) end end |