Avoid name clash with class WebSocketClient by explicit qualification (#2616)

Adds an explicit namespace qualification and a forward declaration for
class WebSocketClient. This change avoids a name clash on code bases
containing unrelated WebSocketClient classes.
This commit is contained in:
Michael Weitzel
2026-10-07 22:38:50 -04:00
committed by GitHub
parent 213029685a
commit 57b8aca6da
+3 -1
View File
@@ -4412,6 +4412,8 @@ private:
namespace ws {
class WebSocketClient;
enum class Opcode : uint8_t {
Continuation = 0x0,
Text = 0x1,
@@ -4513,7 +4515,7 @@ public:
private:
friend class httplib::Server;
friend class WebSocketClient;
friend class httplib::ws::WebSocketClient;
WebSocket(
Stream &strm, const Request &req, bool is_server,