You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.
Activity
neilyoung commentedon Jan 3, 2020
I suppose, there is still no support for websockets?
LeSpocky commentedon Jan 19, 2022
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
etr commentedon Jan 19, 2022
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.
etr commentedon Jul 23, 2026
Resolved in libhttpserver 2.0.0, which adds first-class support for the libmicrohttpd upgrade protocol / WebSockets via
httpserver::websocket_handler. See theexamples/websocket_echo.cppexample and the WebSocket section of the README.Closing as resolved by 2.0.0.