Open glorand-harmonicinc opened 6 months ago
Thanks for the report! I haven't tried Bun before. It's likely that there's some API in the http(s) modules that they didn't replicate exactly and its tripping up some expectation in WebSocket-Node. I don't have a lot of time at the moment to dig into it, unfortunately. :-(
So one of the nice things about Bun is the websocket client/server is natively supported, and using highly performant uWebsockets. The client construct is very similar but the server is very different (although not hard to refactor). Also supports native pub/sub capability.
Hi, If I run the attached example websocket.zip with nodejs it works:
, but with bun it doesn't:
$ bun client.js
Same result if I also use nodejs for the client part.
Any idea?
Probably not related to this issue but I also tried nodejs for the server and bun for the client and following error occurs (I have added headers dump in the log trace):