bun
bun copied to clipboard
ws.WebSocket 'upgrade' and 'unexpected-response' event is not implemented in bun
What version of Bun is running?
Latest
What platform is your computer?
linux
What steps can reproduce the bug?
i got this warning when run my project. And ws connection getting terminate
[bun] Warning: ws.WebSocket 'upgrade' event is not implemented in bun
[bun] Warning: ws.WebSocket 'unexpected-response' event is not implemented in bun
When I try running https://github.com/zerodytrash/TikTok-Chat-Reader with Bun the websocket connection fails
Error event triggered: Upgrade to websocket failed, Websocket connection failed, Error: Server responded with a non-101 status: 200 OK
The example works with Node.js though. I wonder if this issue is related (I don't see the warnings you mentioned though)
Have the same issue.
getting [bun] Warning: ws.WebSocket 'upgrade' event is not implemented in bun in Bun 1.1 still
Version: v1.1.4 Platform: 5.15.146.1-microsoft-standard-WSL2
Getting:
[bun] Warning: ws.WebSocket 'upgrade' event is not implemented in bun
Expected: Not to get any warning.
Description: I have a simple websocket app that works just fine - but this warning comes up for me when I use the superwstest package to run unit tests.