Closed
Description
after upgrading to node 9.7 some existing code started crashing when calling socket.emit('data', data)
the socket was created by net/Server, and later added to an httpServer through httpServer.emit('connection', socket)
I understand that the usage may be a bit hacky, but this was how some third party library implemented a hybrid server (one that takes both tcp & ws connections)