Subscriber
public protocol Subscriber : AnyObject
Subscriber
conforming objects can be notified of subscription notifications and status changes.
-
Notifies the subscriber of a change.
Declaration
Swift
func notify(notification: SubscriptionNotification)
Parameters
notification
Change notification.
-
Notifies the subscriber that the subscription connection state has changed. The subscriber won’t be notified of changes until the connection status changes to
connected
. The subscriber will stop receiving change notifications when the connection state changes todisconnected
.Declaration
Swift
func connectionStatusChanged(state: SubscriptionConnectionState)
Parameters
state
Connection state.