-
-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Boost 1.87.0
breaks the build
#5766
Comments
1.87.0
breaks the build (boost/asio/io_service.hpp
missing)1.87.0
breaks the build
I don't think it's likely that websocketpp will be updated in the near future (maybe a breaking boost version gets them to do so). We should probably move to Boost.Beast. |
I made it compile and it passes our tests:
|
Ideally I would love for us to stop depending on a library that just breaks our dependencies. There is QWebSocket we could use instead of this mess. |
I think the general plan is to move to Boost.Beast. The EventSub implementation uses that already. To avoid code duplication, I'd love to have some higher-level wrapper around Boost.Beast. A kind-of websocket pool, since that's what we want in most cases (ideally, plugins could use that as well). Qt Websockets have one, in my opinion major, drawback: they force you to use UTF16 for text. But we never actually want UTF16, because we're always sending JSON in UTF8. So by using Qt's websockets, we'd have to transcode UTF8 -> UTF16 -> UTF8 both for sending and receiving messages. Especially with EventSub this is suboptimal. A nice feature of them is that we get HTTP and SOCKS proxying for "free". |
If dependence on Boost is unwanted, and UTF8 writing is, there's also https://github.com/machinezone/IXWebSocket. |
We don't want to drop Boost, and IXWebSocket does not have proxy support at all (https://redirect.github.com/machinezone/IXWebSocket/issues/253). |
Checklist
Describe your issue
1.86.0
and below have no such issues.websocketpp
miniaudio
https://www.boost.org/doc/libs/1_86_0/boost/asio/io_service.hpp -> https://www.boost.org/doc/libs/1_87_0/boost/asio/io_service.hpp
https://live.boost.org/doc/libs/1_86_0/doc/html/boost_asio/reference/io_context__work.html -> https://live.boost.org/doc/libs/1_87_0/doc/html/boost_asio/reference/executor_work_guard.html
https://www.boost.org/doc/libs/1_86_0/doc/html/boost_asio/reference/ip__basic_resolver/iterator.html
https://www.boost.org/doc/libs/1_86_0/doc/html/boost_asio/reference/ip__basic_resolver/query.html
https://www.boost.org/doc/libs/1_86_0/doc/html/boost_asio/reference/basic_waitable_timer/expires_from_now.html -> https://www.boost.org/doc/libs/1_87_0/doc/html/boost_asio/reference/basic_waitable_timer/expires_after.html & https://www.boost.org/doc/libs/1_87_0/doc/html/boost_asio/reference/basic_waitable_timer/expiry.html
I have attempted to fix some of these issues on https://github.com/brian6932/chatterino2/tree/fix/boost-1.87.0 & https://github.com/brian6932/websocketpp/tree/fix/boost-1.87.0, but the deprecation of
boost::ip::basic_resolver::iterator
seems like a bit more than I can handle, so if anyone wants write access to either of the repos, or wants ownership of the latter one transferred to them, let me know.Screenshots
No response
OS and Chatterino Version
Not relevant
The text was updated successfully, but these errors were encountered: