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
direciveThe received directive.
-
Invoked after receiving the attachment.
Declaration
Swift
func streamDataDidReceive(attachment: Downstream.Attachment)Parameters
attachmentThe received attachment.
-
Invoked before sending the event.
Declaration
Swift
func streamDataWillSend(event: Upstream.Event)Parameters
eventThe event to send.
-
Invoked after sending the event.
Declaration
Swift
func streamDataDidSend(event: Upstream.Event, error: Error?)Parameters
eventThe sent event.
errorAn 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
attachmentThe sent attachment.
errorAn error object that indicates why the request failed, or nil if the request was successful.
View on GitHub
StreamDataDelegate Protocol Reference