coder / coder/websocket

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

オープン
#478 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Go
スター
5.5k
フォーク
372
PR マージ指標
30日以内にマージされた PR はありません

説明

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,

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。