coder / coder/websocket

Firefox: `CloseNow` returns "A parameter or an operation is not supported by the underlying object"

Aperta
#478 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Go
Stelle
5.5k
Fork
372
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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,

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.