Eneris / push-receiver

A library to subscribe to GCM/FCM and receive notifications within a node process.
https://medium.com/@MatthieuLemoine/my-journey-to-bring-web-push-support-to-node-and-electron-ce70eea1c0b0
MIT License
16 stars 16 forks source link

fix: reconnect on destroy #26

Closed gabrielcipriano closed 2 months ago

gabrielcipriano commented 2 months ago

closes #25

This is how the reconnect on destroy was happening:

solution:

Remove the listener of #socket close event when destroying, breaking the restart event chain: