Skip to content

WebSockets over HTTP/2 #4

Open

Description

@nhooyr

Blocked on the drafts and Go support.

Activity

  1. nhooyr commented on Sep 6, 2018

    @nhooyr
    ContributorAuthor

    Definitely worth reading https://tools.ietf.org/html/rfc8441

  2. nhooyr commented on Mar 29, 2019

    @nhooyr
    ContributorAuthor

    This does mean we cannot expose net.Conn directly as part of the API interface like gorilla/ws because there may not be a net.Conn to expose.

  3. nhooyr commented on Apr 5, 2019

    @nhooyr
    ContributorAuthor

    So unfortunately, there is no clean way for a client to detect whether a HTTP server supports WebSockets over HTTP/2 without actually performing a handshake. I've emailed the working group regarding this.

  4. nhooyr commented on Apr 5, 2019

    @nhooyr
    ContributorAuthor
  5. nhooyr commented on Apr 7, 2019

    @nhooyr
    ContributorAuthor
  6. modified the milestones: v1.0.0, on Apr 12, 2019
  7. changed the title [-]HTTP/2 Support[/-] [+]WebSockets over HTTP/2[/+] on Apr 20, 2019
  8. removed this from the v1.1.0 milestone on Apr 26, 2019
  9. nhooyr commented on May 30, 2019

    @nhooyr
    ContributorAuthor

    So it looks like my suggestion won't be implemented. The only way to implement this then is to take a HTTP2 flag on the dial options or keep a global cache.

    For the server, I'm sure we can do this transparently but will require some collaboration with net/http.

  10. 34 remaining items

  11. mitar commented on Sep 15, 2025

    @mitar

    I think that importing golang.org/x/net/http2 is pretty safe and I would not call it really a dependency. :-)

  12. added 12 commits that reference this issue on Sep 29, 2025
    0a8a19b
    3781078
    344f7b0
    b17da47
    e6e4238
    c99c09c
    77cf18e
    3c44021
    1803e91
    024f0e9
    2ea4fae
    047d1c0
  13. added a commit that references this issue on Oct 29, 2026
    d71edf3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions