diff options
Diffstat (limited to 'zenserver/testing/httptest.h')
| -rw-r--r-- | zenserver/testing/httptest.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/zenserver/testing/httptest.h b/zenserver/testing/httptest.h index f7ea0c31c..57d2d63f3 100644 --- a/zenserver/testing/httptest.h +++ b/zenserver/testing/httptest.h @@ -5,6 +5,7 @@ #include <zencore/logging.h> #include <zencore/stats.h> #include <zenhttp/httpserver.h> +#include <zenhttp/websocket.h> #include <atomic> @@ -13,7 +14,7 @@ namespace zen { /** * Test service to facilitate testing the HTTP framework and client interactions */ -class HttpTestingService : public HttpService +class HttpTestingService : public HttpService, public WebSocketService { public: HttpTestingService(); @@ -40,6 +41,9 @@ public: }; private: + virtual void RegisterHandlers(WebSocketServer& Server) override; + virtual bool HandleRequest(const WebSocketMessage& Request) override; + HttpRequestRouter m_Router; std::atomic<uint32_t> m_Counter{0}; metrics::OperationTiming m_TimingStats; |