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](/doc/en/lb4/apidocs.context.subscription.closed.html) | boolean | Is the subscription closed? |
Methods
| Method | Description |
|---|---|
| [unsubscribe()](/doc/en/lb4/apidocs.context.subscription.unsubscribe.html) | unsubscribe |