There was an error while loading. Please reload this page.
1 parent b87bce4 commit c5461d5Copy full SHA for c5461d5
src/WebSocketsServer.cpp
@@ -43,6 +43,8 @@ WebSocketsServer::WebSocketsServer(uint16_t port, String origin, String protocol
43
_httpHeaderValidationFunc = NULL;
44
_mandatoryHttpHeaders = NULL;
45
_mandatoryHttpHeaderCount = 0;
46
+
47
+ memset(&_clients[0], 0x00, (sizeof(WSclient_t) * WEBSOCKETS_SERVER_CLIENT_MAX));
48
}
49
50
0 commit comments