coder / coder/websocket

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

Abierto
#478 2 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
Go
Estrellas
5.5k
Forks
372
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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,

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.