Closed tahayk closed 2 years ago
You can see the error is in engine.io/build/transports-uws/polling.js
so you need to open issue in engine.io library
@tahayk They are doing this wrong on this line https://github.com/socketio/engine.io/blob/a463d268ed90064e7863679bda423951de108c36/lib/transports-uws/polling.ts#L158 They are trying to concat Buffer views of arrayBuffers that are already gone, need to make copy
Buffer.from(arrayBuffer).copy(allocatedBuffer, offset)
That's kind of interesting that they've actually built polling on uws http and are using the pub sub features. That means we've won, they have adopted our features and our API.
Compare this with 2016 when we adopted their interfaces and acted like a drop in module for their shitty API. That's a milestone since the NPM shitfest days.
I added PR to fix Socket.io issue here https://github.com/socketio/engine.io/pull/642 as described here https://github.com/socketio/socket.io/discussions/4281#discussioncomment-2193206
@tahayk they just merged PR and released new version, that should be fixed for you
@e3dio thank you very much for your help
Hey I'm trying to use uWebSockets with Socket.io, but I keep getting this error, and I noticed that it only happens when I use Safari:
Here is the example I used:
server.js:
demo.html
Any idea about this issue ? Thanks.