| 131 | } |
| 132 | |
| 133 | int HttpStreamServer::sendData(fl::span<const u8> data) { |
| 134 | if (!isConnected()) { |
| 135 | return -1; |
| 136 | } |
| 137 | |
| 138 | // Broadcast to all clients |
| 139 | mNativeServer->broadcast(data); |
| 140 | return static_cast<int>(data.size()); |
| 141 | } |
| 142 | |
| 143 | int HttpStreamServer::recvData(fl::span<u8> buffer) { |
| 144 | if (!isConnected()) { |