Firefox: `CloseNow` returns "A parameter or an operation is not supported by the underlying object"
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- go, wasm
- Domain
- networking
Research direction
Start by tracing the CloseNow alias and the Close call in the Firefox WASM path, then reproduce the reported error in Firefox. Done means CloseNow no longer returns the unsupported-operation error while preserving the intended close behavior.
Written by the indexing model from the issue text.
Description
Hi there, I noticed in Firefox WASM calling CloseNow returns an error:
A parameter or an operation is not supported by the underlying object
This can be fixed by instead calling Close(websocket.StatusNormalClosure, "some reason").
Since CloseNow is just an alias for Close(websocket.StatusGoingAway, "") my guess is that the empty reason value is being rejected by the browser,
- Dominant language
- Go
- Stars
- 5.5k
- Forks
- 377
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from coder/websocket
-
Must not wrap io.EOF Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
export wstest Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
Difficulty 5/5 Over a week Newbie friendliness 45/100
Similar issues
-
feature-request helm
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gravitational/teleport#69785 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
crossplane/crossplane#7859 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100