public protocol ParseSubscription : AnyObject
This protocol describes the interface for handling events from a
You can use this protocol on any custom class of yours, instead of Subscription, if it fits your use case better.
Tells the handler that an event has been received from the
func didReceive(_ eventData: Data) throws
The event data that has been recieved from the server.
Tells the handler that a query has been successfully registered with the server.
NoteThis may be invoked multiple times if the client disconnects/reconnects.
func didSubscribe(_ new: Bool)
Tells the handler that a query has been successfully deregistered from the server.
NoteThis is not called unless
unsubscribe()is explicitly called.