MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / broadcastText

Method broadcastText

Libraries/Http/HttpWebSocket.cpp:1510–1518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1508}
1509
1510Result HttpWebSocketSmallHub::broadcastText(Span<const char> payload, Span<char> frameStorage)
1511{
1512 HttpWebSocketEndpoint endpoint;
1513 endpoint.reset(HttpWebSocketEndpointRole::Server);
1514
1515 Span<const char> encodedFrame;
1516 SC_TRY(endpoint.sendData(HttpWebSocketOpcode::Text, payload, true, nullptr, frameStorage, encodedFrame));
1517 return broadcastFrame(encodedFrame);
1518}
1519} // namespace SC

Callers 6

broadcastClearMethod · 0.80
onPayloadMethod · 0.80
onMessageMethod · 0.80
broadcastClearMethod · 0.80

Calls 2

sendDataMethod · 0.80
resetMethod · 0.45

Tested by 3

broadcastClearMethod · 0.64