MCPcopy Create free account
hub / github.com/chronoxor/CppServer / onDisconnected

Method onDisconnected

examples/wss_chat_client.cpp:58–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 void onDisconnected() override
59 {
60 WSSClient::onDisconnected();
61
62 // Wait for a while...
63 CppCommon::Thread::Sleep(1000);
64
65 // Try to connect again
66 if (!_stop)
67 ConnectAsync();
68 }
69
70 void onError(int error, const std::string& category, const std::string& message) override
71 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected