CombineWrapper

public final class CombineWrapper : WebcomWrapper

The type that wraps WebcomApplication in order to enrich it with a Combine-based API.

See also the documentation section of WebcomWrapper for the corresponding wrapped type.

To use this type, import the following dependency in your code:

import WebcomCombine

Stored Properties

API

  • Cancels the subscription to the related notification.

    Declaration

    Swift

    @discardableResult
    public func cancel(application: WebcomApplication, session: URLSession? = nil) -> WebcomFuture<Void>

    Parameters

    application

    The current application.

    session

    The session used to send the request to the back-end. When nil, the default session of the application of this instance is used.

    Return Value

    A future with a void value.

  • Updates the subscription to the related notification.

    Declaration

    Swift

    @discardableResult
    public func update(application: WebcomApplication, descriptor: DataSubscriptionDescriptor, file: StaticString = #fileID, line: UInt = #line, session: URLSession? = nil) -> WebcomFuture<DataSubscription>

    Parameters

    application

    The current application.

    descriptor

    The descriptor for the subscription.

    file

    The file from which the method is called. This is used for debugging purposes.

    line

    The line from which the method is called. This is used for debugging purposes.

    session

    The session used to send the request to the back-end. When nil, the default session of the application of this instance is used.

    Return Value

    A future with the subscription