MCPcopy Create free account
hub / github.com/acl-dev/acl / sendPong

Method sendPong

lib_acl_cpp/src/http/WebSocketServlet.cpp:149–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149bool WebSocketServlet::sendPong(const char *text)
150{
151 size_t len = !text ? 0 : strlen(text);
152 ws_->set_frame_opcode(FRAME_PONG);
153 ws_->set_frame_fin(true);
154 ws_->set_frame_payload_len(len);
155 return ws_->send_frame_data(text, len);
156}
157
158bool WebSocketServlet::sendPing(const char *text)
159{

Callers

nothing calls this directly

Calls 1

send_frame_dataMethod · 0.80

Tested by

no test coverage detected