mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-28 15:12:19 +03:00
продолжение переписи api
This commit is contained in:
@@ -257,8 +257,10 @@ bool WebSocketsServerCore::broadcastBIN(uint8_t * payload, size_t length, bool f
|
||||
for(uint8_t i = 0; i < WEBSOCKETS_SERVER_CLIENT_MAX; i++) {
|
||||
client = &_clients[i];
|
||||
if(clientIsConnected(client)) {
|
||||
if(!sendFrame(client, WSop_binary, payload, length, fin, headerToPayload)) {
|
||||
ret = false;
|
||||
if(continuation) {
|
||||
ret = sendFrame(client, WSop_continuation, payload, length, fin, headerToPayload);
|
||||
} else {
|
||||
ret = sendFrame(client, WSop_binary, payload, length, fin, headerToPayload);
|
||||
}
|
||||
}
|
||||
WEBSOCKETS_YIELD();
|
||||
|
||||
Reference in New Issue
Block a user