Page Contents

Home > @loopback/context > ContextSubscriptionManager > subscribe

ContextSubscriptionManager.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:

Subscription