I use socket.io
Error
RangeError: Maximum call stack size exceeded
when calling socket.disconnect();
This may help. Basically says to disable logging.
io.set('log level', false)
Didn't help in my case. I'm seeing this while emitting data and it's related to the has-binary-data dependency socket.io/node_modules/has-binary-data/index.js:42.