ARTRealtimeChannelInternal

Objective-C

@interface ARTRealtimeChannelInternal : ARTChannel

Swift

class ARTRealtimeChannelInternal : ARTChannel

Undocumented

ARTEventEmitter

Private

  • Undocumented

    Declaration

    Objective-C

    - (void)performTransitionToState:(ARTRealtimeChannelState)state withParams:(ARTChannelStateChangeParams *)params;

    Swift

    func performTransition(to state: ARTRealtimeChannelState, with params: ChannelStateChangeParams)
  • Undocumented

    Declaration

    Objective-C

    - (void)onChannelMessage:(ARTProtocolMessage *)message;

    Swift

    func onChannelMessage(_ message: ARTProtocolMessage)
  • Attempts to submit a channel message for best-effort delivery to Ably.

    This enables the channel message publishing behaviour described in RTL6c:

    • If the channel’s state is neither SUSPENDED nor FAILED then the message will be submitted to the connection for further checks per RTL6c1 and RTL6c2. Note that these checks may cause the connection to immediately reject the message per RTL6c4.
    • If the channel’s state is SUSPENDED or FAILED then the callback will be called immediately with an error per RTL6c4.

    Declaration

    Objective-C

    - (void)publishProtocolMessage:(nonnull ARTProtocolMessage *)pm
                          callback:(nonnull ARTStatusCallback)cb;

    Swift

    func publishProtocolMessage(_ pm: ARTProtocolMessage, callback cb: @escaping ARTStatusCallback)
  • Undocumented

    Declaration

    Objective-C

    - (void)setAttached:(ARTProtocolMessage *)message;

    Swift

    func setAttached(_ message: ARTProtocolMessage)
  • Undocumented

    Declaration

    Objective-C

    - (void)setDetached:(ARTProtocolMessage *)message;

    Swift

    func setDetached(_ message: ARTProtocolMessage)
  • Undocumented

    Declaration

    Objective-C

    - (void)onMessage:(ARTProtocolMessage *)message;

    Swift

    func onMessage(_ message: ARTProtocolMessage)
  • Undocumented

    Declaration

    Objective-C

    - (void)onPresence:(ARTProtocolMessage *)message;

    Swift

    func onPresence(_ message: ARTProtocolMessage)
  • Undocumented

    Declaration

    Objective-C

    - (void)onSync:(ARTProtocolMessage *)message;

    Swift

    func onSync(_ message: ARTProtocolMessage)
  • Undocumented

    Declaration

    Objective-C

    - (void)onError:(ARTProtocolMessage *)error;

    Swift

    func onError(_ error: ARTProtocolMessage)
  • Undocumented

    Declaration

    Objective-C

    - (void)setSuspended:(ARTChannelStateChangeParams *)params;

    Swift

    func setSuspended(_ params: ChannelStateChangeParams)
  • Undocumented

    Declaration

    Objective-C

    - (void)setFailed:(ARTChannelStateChangeParams *)params;

    Swift

    func setFailed(_ params: ChannelStateChangeParams)
  • Undocumented

    Declaration

    Objective-C

    - (void)detachChannel:(ARTChannelStateChangeParams *)params;

    Swift

    func detachChannel(_ params: ChannelStateChangeParams)
  • Undocumented

    Declaration

    Objective-C

    - (void)emit:(ARTChannelEvent)event with:(ARTChannelStateChange *)data;

    Swift

    func emit(_ event: ARTChannelEvent, with data: ARTChannelStateChange)
  • Provides the implementation for -[ARTPluginAPI setPluginDataValue:forKey:channel]. See documentation for that method in APPluginAPIProtocol.

    Declaration

    Objective-C

    - (void)setPluginDataValue:(nonnull id)value forKey:(nonnull NSString *)key;

    Swift

    func setPluginDataValue(_ value: Any, forKey key: String)
  • Provides the implementation for -[ARTPluginAPI pluginDataValueForKey:channel]. See documentation for that method in APPluginAPIProtocol.

    Declaration

    Objective-C

    - (nullable id)pluginDataValueForKey:(nonnull NSString *)key;

    Swift

    func pluginDataValue(forKey key: String) -> Any?