MCPcopy Create free account
hub / github.com/axmolengine/axmol / send

Method send

core/network/WebSocket.cpp:424–429  ·  view source on GitHub ↗

* @brief Sends string data to websocket server. * * @param message string data. * @lua sendstring */

Source from the content-addressed store, hash-verified

422 * @lua sendstring
423 */
424void WebSocket::send(std::string_view message)
425{
426 if (!_transport || message.empty())
427 return;
428 WebSocketProtocol::sendFrame(*this, message.data(), message.length(), ws::detail::opcode::text);
429}
430
431/**
432 * @brief Sends binary data to websocket server.

Callers 15

sendImmediateFunction · 0.45
onMenuGetTestClickedMethod · 0.45
onMenuPostTestClickedMethod · 0.45
onMenuPutTestClickedMethod · 0.45
onMenuSendTextClickedMethod · 0.45

Calls 3

emptyMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by 12

onMenuGetTestClickedMethod · 0.36
onMenuPostTestClickedMethod · 0.36
onMenuPutTestClickedMethod · 0.36
onMenuSendTextClickedMethod · 0.36
doSendTextMethod · 0.36