I am using the latest versions of node.js and socket.io. At the same time, the application starts in strict mode, since throughout it uses the syntax class expressions.
When connecting a socket, the application crashes:
TypeError: Cannot set property request of #<Socket> which has only a getter I read on the githaba that if you comment out the line (node_modules\socket.io\lib\socket.js:63:16) then everything will be ok, and that this will in no way affect the operation of the application.
Actually I want to ask you what the line this.request = client.request; and where / at what point it is used. And really, if you comment it out, it will not affect the operation of the application?
function Socket(nsp, client){ //..more properties this.request = client.request; //..more properties }