Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebSocket - close 1002 Protocol error - expected control frame #1592

Closed
tim-smart opened this issue Dec 9, 2022 · 4 comments
Closed

WebSocket - close 1002 Protocol error - expected control frame #1592

tim-smart opened this issue Dec 9, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@tim-smart
Copy link

What version of Bun is running?

0.3.0

What platform is your computer?

Darwin 22.1.0 x86_64 i386

What steps can reproduce the bug?

const ws = new WebSocket("wss://gateway.discord.gg/?version=10&encoding=json")

ws.addEventListener("open", () => {
  console.log("open")
})

ws.addEventListener("message", (e) => {
  console.log("message", e.data)
})

ws.addEventListener("error", (e) => {
  console.log("error", e)
})

ws.addEventListener("close", (e) => {
  console.log("close", e.code, e.reason)
})

What is the expected behavior?

No response

What do you see instead?

image

Additional information

No response

@tim-smart tim-smart added the bug Something isn't working label Dec 9, 2022
@xHyroM
Copy link
Collaborator

xHyroM commented Dec 30, 2022

Confirmed by me.

@Jarred-Sumner
Copy link
Collaborator

Doesn't seem to repro on my home internet on either macOS aarch64 or Linux x64

Will try more configurations

@xHyroM
Copy link
Collaborator

xHyroM commented Dec 30, 2022

It happens me when i connect like 10 accounts to discord gateway.

@Electroid
Copy link
Contributor

We need to test our WebSocket client using the Autobahn test suite to fix these bugs, including this one. For updates, please upvote and subscribe to this issue: #6686

@Electroid Electroid closed this as not planned Won't fix, can't repro, duplicate, stale Oct 24, 2023
@Electroid Electroid marked this as a duplicate of #6686 Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants