Page Contents
Home > @loopback/context > Context > subscribe
Context.subscribe() method
Add a context event observer to the context
Signature:
subscribe(observer: ContextEventObserver): Subscription;
Parameters
Parameter | Type | Description |
---|---|---|
observer | ContextEventObserver | Context observer instance or function |
Returns: