Firefox: `CloseNow` returns "A parameter or an operation is not supported by the underlying object"
Offen
bug
- Vorherrschende Sprache
- Go
- Sterne
- 5.5k
- Forks
- 372
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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,
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.