bun icon indicating copy to clipboard operation
bun copied to clipboard

ws.WebSocket 'upgrade' and 'unexpected-response' event is not implemented in bun

Open arr2504 opened this issue 1 year ago • 3 comments

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

arr2504 avatar Sep 23 '23 04:09 arr2504

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)

mattrossman avatar Sep 25 '23 15:09 mattrossman

Have the same issue.

suenot avatar Sep 29 '23 12:09 suenot

getting [bun] Warning: ws.WebSocket 'upgrade' event is not implemented in bun in Bun 1.1 still

kingkong404 avatar Apr 06 '24 07:04 kingkong404

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.

RudyBai avatar Apr 29 '24 13:04 RudyBai