diff --git a/client/main.cpp b/client/main.cpp index c69182f..cb1c9fb 100644 --- a/client/main.cpp +++ b/client/main.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #ifdef EMSCRIPTEN #include diff --git a/client/web_socket_wrapper.cpp b/client/web_socket_wrapper.cpp index 4f2bab2..ff18af4 100644 --- a/client/web_socket_wrapper.cpp +++ b/client/web_socket_wrapper.cpp @@ -1,6 +1,8 @@ #include "web_socket_wrapper.hpp" #include "spdlog/spdlog.h" #include +#include +#include Web_socket_wrapper::Web_socket_wrapper(const QUrl &url, QObject *parent) : QObject(parent), m_web_socket(new QWebSocket("", QWebSocketProtocol::VersionLatest, this)), diff --git a/client/web_socket_wrapper.hpp b/client/web_socket_wrapper.hpp index afd0d32..f56355b 100644 --- a/client/web_socket_wrapper.hpp +++ b/client/web_socket_wrapper.hpp @@ -1,9 +1,10 @@ #ifndef WEB_SOCKET_WRAPPER_H #define WEB_SOCKET_WRAPPER_H -#include -#include #include +#include +Q_FORWARD_DECLARE_OBJC_CLASS(QWebSocket); +Q_FORWARD_DECLARE_OBJC_CLASS(QTimer); using json = nlohmann::json; class Web_socket_wrapper : public QObject