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

Method onError

performance/ws_echo_client.cpp:80–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 }
79
80 void onError(int error, const std::string& category, const std::string& message) override
81 {
82 std::cout << "WebSocket client caught an error with code " << error << " and category '" << category << "': " << message << std::endl;
83 ++total_errors;
84 }
85
86private:
87 size_t _sent{0};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected