Class: WhereIsWaldo::RosterDelivery::Nudge
- Defined in:
- app/services/where_is_waldo/roster_delivery.rb
Overview
Poll, plus a content-free nudge broadcast on transition so clients re-poll immediately instead of waiting for the next interval — near-instant latency with the same server-filtered (arbitrary-visibility) delivery. The nudge carries no identity/state, so it only reveals "activity happened".
Instance Method Summary collapse
Methods inherited from Poll
#poll_messages, #subscribe_plan
Methods inherited from Base
#poll_messages, #subscribe_plan
Instance Method Details
#mode ⇒ Object
148 149 150 |
# File 'app/services/where_is_waldo/roster_delivery.rb', line 148 def mode :nudge end |
#on_transition(subject_id) ⇒ Object
152 153 154 |
# File 'app/services/where_is_waldo/roster_delivery.rb', line 152 def on_transition(subject_id) Roster.publish_nudge(subject_id) end |