Class: RocketChat::Realtime::Handlers::Changed
- Defined in:
- lib/rocket_chat/realtime/handlers/changed.rb
Overview
Changed Message Handler
The DDP Subscribe changed event
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from RocketChat::Realtime::Handlers::Base
Instance Method Details
#changed ⇒ RocketChat::Realtime::Messages::Changed
Changed
20 21 22 |
# File 'lib/rocket_chat/realtime/handlers/changed.rb', line 20 def changed Messages::Changed.new(['id'], ) end |
#process ⇒ Object
25 26 27 |
# File 'lib/rocket_chat/realtime/handlers/changed.rb', line 25 def process client.emit(changed.collection, changed) end |