You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for your (good) work! Really helpful, save hours of work for me :D
For some reason my network (I'm not sure what, but I guess: Internet provider, router...) or maybe the server's OS... something breaks my socket opened connections if no activity is detected. When it happens node-apn makes node instance die.
However, the solution is quite simple: just catch the error:
Hi!
First of all, thanks for your (good) work! Really helpful, save hours of work for me :D
For some reason my network (I'm not sure what, but I guess: Internet provider, router...) or maybe the server's OS... something breaks my socket opened connections if no activity is detected. When it happens node-apn makes node instance die.
However, the solution is quite simple: just catch the error:
self.socket.on('error', function(data) { self.socket = undefined; });
Obviously, that piece of code can be improved ;)
Thanks again!
The text was updated successfully, but these errors were encountered: