Page Contents

Home > @loopback/context > Subscription

Subscription interface

Subscription of context events. It’s modeled after https://github.com/tc39/proposal-observable.

Signature:

export interface Subscription 

Properties

Property Modifiers Type Description
closed   boolean Is the subscription closed?

Methods

Method Description
unsubscribe() unsubscribe