Module: Y::Actioncable::Reliable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/y/actioncable/reliable.rb
Overview
rubocop:disable Metrics/ModuleLength
Constant Summary collapse
- CLOCK_FIELD =
"clock"
Instance Method Summary collapse
-
#subscribe_to_channel ⇒ Object
we need to override this method to inject our own callback for subscribe without forcing the user to know about calling super() for #subscribe.
-
#unsubscribe_from_channel ⇒ Object
:nodoc:.
Instance Method Details
#subscribe_to_channel ⇒ Object
we need to override this method to inject our own callback for subscribe without forcing the user to know about calling super() for #subscribe
75 76 77 78 79 80 81 |
# File 'lib/y/actioncable/reliable.rb', line 75 def subscribe_to_channel run_callbacks :subscribe do reliable_subscribed end super end |
#unsubscribe_from_channel ⇒ Object
:nodoc:
83 84 85 86 87 88 89 |
# File 'lib/y/actioncable/reliable.rb', line 83 def unsubscribe_from_channel # :nodoc: run_callbacks :unsubscribe do reliable_unsubscribed end super end |