MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / SendMsgToAllClient

Method SendMsgToAllClient

src/plugin/net/src/AFCWebSocketServer.cpp:232–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232bool AFCWebSocketServer::SendMsgToAllClient(const char* msg, const size_t nLen)
233{
234 // auto frame = std::make_shared<std::string>();
235 // brynet::net::WebSocketFormat::wsFrameBuild(msg,
236 // nLen,
237 // *frame,
238 // brynet::net::WebSocketFormat::WebSocketFrameType::BINARY_FRAME,
239 // true,
240 // false);
241
242 // for (auto& it : sessions_)
243 //{
244 // AFHttpEntityPtr pNetObject = it.second;
245
246 // if (pNetObject && !pNetObject->NeedRemove())
247 // {
248 // pNetObject->GetSession()->send(frame);
249 // }
250 //}
251
252 return true;
253}
254
255bool AFCWebSocketServer::SendMsg(const char* msg, const size_t msg_len, const AFGUID& session_id)
256{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected