We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 391b08f commit 991ae80Copy full SHA for 991ae80
examples/AdvancedChatServer/AdvancedChatServer.ino
@@ -101,7 +101,7 @@ void loop() {
101
int count = clients[i].read(buffer, 80);
102
// write the bytes to all other connected clients
103
for (byte j=0; j < 8; j++) {
104
- if (j != i && clients[j]) {
+ if (j != i && clients[j].connected()) {
105
clients[j].write(buffer, count);
106
}
107
0 commit comments