Class: Ably::Realtime::Channel::ChannelStateMachine Private
- Defined in:
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Internal class to manage channel state for
Class Method Summary collapse
Methods included from
, , , ,
Class Method Details
.error_from_state_change(current_transition) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
74 75 76 77 78 79 80
# File 'lib/ably/realtime/channel/channel_state_machine.rb', line 74 def self.error_from_state_change(current_transition) # ChannelStateChange object is always passed in current_transition metadata object connection_state_change = current_transition. # Reason attribute contains errors err = connection_state_change && connection_state_change.reason err if is_error_type?(err) end