OrtcClientDelegate

public protocol OrtcClientDelegate

Delegation protocol for ortc client events

  • Occurs when the client connects.

    Declaration

    Swift

    func onConnected(_ ortc: OrtcClient)

    Parameters

    ortc

    The ORTC object.

  • Occurs when the client disconnects.

    Declaration

    Swift

    func onDisconnected(_ ortc: OrtcClient)

    Parameters

    ortc

    The ORTC object.

  • Occurs when the client subscribes to a channel.

    Declaration

    Swift

    func onSubscribed(_ ortc: OrtcClient, channel: String)

    Parameters

    ortc

    The ORTC object.

    channel

    The channel name.

  • Occurs when the client unsubscribes from a channel.

    Declaration

    Swift

    func onUnsubscribed(_ ortc: OrtcClient, channel: String)

    Parameters

    ortc

    The ORTC object.

    channel

    The channel name.

  • Occurs when there is an exception.

    Declaration

    Swift

    func onException(_ ortc: OrtcClient, error: NSError)

    Parameters

    ortc

    The ORTC object.

    error

    The occurred exception.

  • Occurs when the client attempts to reconnect.

    Declaration

    Swift

    func onReconnecting(_ ortc: OrtcClient)

    Parameters

    ortc

    The ORTC object.

  • Occurs when the client reconnects.

    Declaration

    Swift

    func onReconnected(_ ortc: OrtcClient)

    Parameters

    ortc

    The ORTC object.