tokilabs/plow

Prevent accidental use

Opened this issue · 0 comments

listen(topic: string, handler: (msg: any) => void): void;

The fact that the method will remove other listeners should be made clear in the method's name or via a mandatory parameter (e.g. removeOtherListeners: boolean)

In the second case, if removeOtherListeners is set to false forward call to subscribe