Closed arlac77 closed 2 years ago
What is this fixing?
My hope was that it prevents excessive adding of 'close' event handlers. I will try to further isolate the problem so than it can be reproduced (currently i do not understand the exact circumstances)
Shouldn’t make a difference wheather it’s once or on here as the socket is not reused, but let me know if you can make a test case or similar.
Prevent registering several close handlers by using 'once'