MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / makeAppWSMessage

Function makeAppWSMessage

Source/Http/HttpServer.cpp:210–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210static Dictionary* makeAppWSMessage(String type, std::string&& msg = std::string{}) {
211 auto payload = Dictionary::create();
212 payload->set("type"_slice, Value::alloc(type.toString()));
213 payload->set("msg"_slice, Value::alloc(msg));
214 return payload;
215}
216
217class WebSocketServer {
218 struct Connection {

Callers 2

sendLogMethod · 0.70
startMethod · 0.70

Calls 4

setMethod · 0.65
toStringMethod · 0.65
createFunction · 0.50
allocFunction · 0.50

Tested by

no test coverage detected