final class Notification
Class that provides
Connects to a websocket and subscribes for
A closure to be executed everytime when connection status change occurs.
InPlayerNotificationStatusenum that shows current connection status
A closure to be executed everytime new notification is sent from the server.
InPlayerNotificationstruct optionally containing associated values depending on the type enum.
A closure to be executed when some error occurred.
InPlayerErrorcontaining info about the error that occurred.
Disconnects from websocket and stop receving
public static func unsubscribe()
Returns subscribed status
public static func isSubscribed() -> Bool