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

Method onWSReceived

performance/ws_echo_client.cpp:62–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 }
61
62 void onWSReceived(const void* buffer, size_t size) override
63 {
64 _received += size;
65 while (_received >= message_to_send.size())
66 {
67 SendMessage();
68 _received -= message_to_send.size();
69 }
70
71 timestamp_stop = Timestamp::nano();
72 total_bytes += size;
73 }
74
75 void onSent(size_t sent, size_t pending) override
76 {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected