Options supported by on and onSync.

interface SubscribeOptions {
    once?: boolean;
}

Properties

Properties

once?: boolean

If true, the subscription will be removed after the first invocation (default: false).

The subscription can still be removed manually by destroying the handle returned by on.