| 269 | } |
| 270 | |
| 271 | ccstd::vector<std::shared_ptr<WebSocketServerConnection>> WebSocketServer::getConnections() const { |
| 272 | std::lock_guard<std::mutex> guard(_connsMtx); |
| 273 | ccstd::vector<std::shared_ptr<WebSocketServerConnection>> ret; |
| 274 | for (auto itr : _conns) { |
| 275 | ret.emplace_back(itr.second); |
| 276 | } |
| 277 | return ret; |
| 278 | } |
| 279 | |
| 280 | void WebSocketServer::onCreateClient(struct lws *wsi) { |
| 281 | LOGE(); |
no outgoing calls
no test coverage detected