diff options
author | George Hazan <george.hazan@gmail.com> | 2025-02-16 16:56:14 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-02-16 16:56:14 +0300 |
commit | 2331374d1ffe2432496e484443a58e859a7f560f (patch) | |
tree | 8c8cf662bb9e8df29b7fb1969e016dcc9632a04a /protocols/Discord/src/proto.h | |
parent | 65783c3a344eaf555e46ab77dc9f3603cc07ce48 (diff) |
Discord: the safer way of handling web sockets
Diffstat (limited to 'protocols/Discord/src/proto.h')
-rw-r--r-- | protocols/Discord/src/proto.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/protocols/Discord/src/proto.h b/protocols/Discord/src/proto.h index 8342ba5724..a147124a43 100644 --- a/protocols/Discord/src/proto.h +++ b/protocols/Discord/src/proto.h @@ -364,9 +364,10 @@ class CDiscordProto : public PROTO<CDiscordProto> HANDLE m_hWorkerThread; // worker thread handle
HNETLIBCONN m_hAPIConnection; // working connection
- bool
+ bool
m_bOnline, // protocol is online
- m_bTerminated; // Miranda's going down
+ m_bTerminated, // Miranda's going down
+ m_bConnected; // web socket is connected
//////////////////////////////////////////////////////////////////////////////////////
// gateway
@@ -380,7 +381,7 @@ class CDiscordProto : public PROTO<CDiscordProto> m_szWSCookie; // cookie used for establishing websocket connection
HNETLIBUSER m_hGatewayNetlibUser; // the separate netlib user handle for gateways
- JsonWebSocket<CDiscordProto> *m_ws;
+ JsonWebSocket<CDiscordProto> m_ws;
void __cdecl GatewayThread(void*);
bool GatewayThreadWorker(void);
|