Skip to content

x/net/websocket: deprecate or delete it? (not trolling) #33215

Closed
@karalabe

Description

@karalabe

We've been using the golang.org/x/net/websocket package for a long time, mostly because I trust an "official" library more than an alternative. The "official" package does warn that:

This package currently lacks some features found in an alternative and more actively maintained WebSocket package.

Unfortunately this is only half the truth. The full truth is, that due to the missing features, connections between the package and a proper implementation will often break.

My point really being here is that the "official" websocket package is not simply missing some features, rather those features will lead to serious - and hard to debug - issues down the line. As I see it, x/net/websocket is not going to be brought up to spec with websocket proper, and there are better alternatives.

Could we deprecate the package? Ideally I'd just delete it, but that's probably too drastic and would break dependent code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions