http: use socket.once, not socket.on
Register the 'close' event listener with .once(), not .on(). It doesn't matter in the grand scheme of things because the listener doesn't keep references to any heavy-weight objects but using .once() for a oneshot listener is something of a best practice.
parent
50ba0f27
Please register or sign in to comment