StreamDataRoutable
public protocol StreamDataRoutable : UpstreamDataSendable
Determine the destinations for receiving Downstream
data and sending Upstream
data.
-
Adds a delegate to be notified of stream data handling states.
Declaration
Swift
func add(delegate: StreamDataDelegate)
Parameters
delegate
The object to add.
-
Removes a delegate from stream-data-router.
Declaration
Swift
func remove(delegate: StreamDataDelegate)
Parameters
delegate
The object to remove.
-
Enable connection-oriented feature to receive server initiated directive.
Declaration
Swift
func startReceiveServerInitiatedDirective(completion: ((StreamDataState) -> Void)?)
Parameters
completion
The completion handler. Pass
StreamDataState.error
when connection failed. -
Enable connection-oriented feature with specific policy.
Declaration
Swift
func startReceiveServerInitiatedDirective(to serverPolicy: Policy.ServerPolicy)
Parameters
serverPolicy
The policy for connecting to the server.
-
Refersh the policy for connecting to the server.
Declaration
Swift
func restartReceiveServerInitiatedDirective()
-
Disable connection-oriented feature.
Declaration
Swift
func stopReceiveServerInitiatedDirective()