Created by: blindman2k
The previous code breaks if you unsubscribe as a response to the message event, particularly if you have more than one subscription active.
Please upgrade npm too.
Thanks!