Revision f26362e9
ID | f26362e9381d88d4c906e3624f90fc76e9087c20 |
Parent | 50ba0f27 |
Child | be770a38 |
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.
Files
- added
- modified
- copied
- renamed
- deleted