coder / coder/websocket

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

未关闭
#478 2 条评论 0 个 reaction 已指派 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,

贡献指南

这个仓库没有索引到贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
go, wasm
领域
networking
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。