StreamConcurrencyService
public protocol StreamConcurrencyService
The Stream Concurrency Service contract
-
API to insert a stream to the server.Returns error when the request is failed.
Declaration
Swift
func putStreamForDevice(deviceId: String, completion: @escaping (Result<Void, Error>) -> Void)Parameters
deviceIdThe unique identifier of the device.
completionThe handle to invoke on request completion
-
API to delete a stream for the given device Id.Returns error when the request is failed.
Declaration
Swift
func deleteStreamForDevice(deviceId: String, completion: @escaping (Result<Void, Error>) -> Void)