Skip to content

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

@vito

Description

@vito

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy