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.
83 84 85 86 87 88 89
# File 'lib/ably/realtime/channel/channel_state_machine.rb', line 83 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