StreamDataDelegate
public protocol StreamDataDelegate : AnyObject
A protocol for notifying events about stream data
-
Invoked after receiving the directive.
Declaration
Swift
func streamDataDidReceive(direcive: Downstream.Directive)
Parameters
direcive
The received directive.
-
Invoked after receiving the attachment.
Declaration
Swift
func streamDataDidReceive(attachment: Downstream.Attachment)
Parameters
attachment
The received attachment.
-
Invoked before sending the event.
Declaration
Swift
func streamDataWillSend(event: Upstream.Event)
Parameters
event
The event to send.
-
Invoked after sending the event.
Declaration
Swift
func streamDataDidSend(event: Upstream.Event, error: Error?)
Parameters
event
The sent event.
error
An error object that indicates why the request failed, or nil if the request was successful.
-
Invoked after sending the attachment.
Declaration
Swift
func streamDataDidSend(attachment: Upstream.Attachment, error: Error?)
Parameters
attachment
The sent attachment.
error
An error object that indicates why the request failed, or nil if the request was successful.