socketio / engine.io-client

The engine used in the Socket.IO JavaScript client, which manages the low-level transports such as HTTP long-polling, WebSocket and WebTransport.

Home Page:https://socket.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding/removing socket event listeners leaks memory

trxcllnt opened this issue · comments

Due to sindresorhus/component-emitter#74, adding and removing event listeners leaks memory. If you know you're removing the last listener for an event, you can call removeListener(evt) to get it to dereference the _callbacks Arrays. Best option is component-emitter maintainers merge that PR, then bump the version here.

Wow, 2017.

Closed by d2daa28, and included in 3.4.2.