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

    deviceId

    The unique identifier of the device.

    completion

    The 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)