Skip to content

WebSocket.close() error code #2631

Closed

Description

What version of Bun is running?

0.5.9

What platform is your computer?

Darwin 22.4.0 arm64 arm

What steps can reproduce the bug?

I'm storing the WS connections in a Map and when I get a stored ws and call ws.close(1008) (with a code) it throws and shutdowns server:

zsh: segmentation fault bun run index.ts

But when not setting an error code it closes normal.

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't workingcrashAn issue that could cause a crashAn issue that could cause a crashweb-apiSomething that relates to a standard Web APISomething that relates to a standard Web API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions