Skip to content

Commit

Permalink
Minor changes in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ocrdu committed Oct 11, 2019
1 parent cebd532 commit fe50495
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/multisocket.ino
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,13 @@ void loop() {
for (int i=0; i<maxClients; i++) {
if (!clients[i] || !clients[i]->connected()) {
openSlot = i;
clients[i] = new WiFiClient(newClient);
clients[openSlot] = new WiFiClient(newClient);
Sprintln(" New client stored in clients[" + (String)openSlot + "]");
break;
}
}

if (openSlot > -1) {
//clients[openSlot] = new WiFiClient(newClient);
Sprintln(" New client stored in clients[" + (String)openSlot + "]");
webSocketServers[openSlot] = new WebSocketServer(clients[openSlot]);
if (webSocketServers[openSlot]->handshake()) {
Sprintln(" Websocket handshake by webSocketServers[" + (String)openSlot + "] successfull");
Expand Down

0 comments on commit fe50495

Please sign in to comment.