Skip to content

Introduce "upgrade protocol" (websockets) #135

Closed

Description

@etr

Is your feature request related to a problem? Please describe.
"upgrade protocol" is now supported by libmicrohttpd. We should reach feature parity to allow users to use it (without having to go back to the wrapped library)

Describe why the feature or enhancement you are proposing fits the library.
Reach feature parity on upgrade protocol. This will likely need to be implemented as a new response_type.

Describe the solution you'd like
This will likely need to be implemented as a new response_type.

Activity

  1. neilyoung commented on Jan 3, 2020

    @neilyoung

    I suppose, there is still no support for websockets?

  2. LeSpocky commented on Jan 19, 2022

    @LeSpocky
    Contributor

    I suppose, there is still no support for websockets?

    libmicrohttpd gained experimental websockets support in December 2021 with version 0.9.74, see their announcment: https://lists.gnu.org/archive/html/libmicrohttpd/2021-12/msg00052.html

  3. etr commented on Jan 19, 2022

    @etr
    OwnerAuthor

    There is a proposed PR that would add support to websockets here: #236

    The only thing blocking it is that it moves the dependency to the experimental version forcefully rather than optionally. I believe this could be fixed easily. I might not have the time right now to fix it, but I'd welcome changes to that PR addressing the issue. That would close a gap.

  4. etr commented on Jul 23, 2026

    @etr
    OwnerAuthor

    Resolved in libhttpserver 2.0.0, which adds first-class support for the libmicrohttpd upgrade protocol / WebSockets via httpserver::websocket_handler. See the examples/websocket_echo.cpp example and the WebSocket section of the README.

    Closing as resolved by 2.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestFeature requests or enhancements

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions