Skip to content

Commit

Permalink
FIXED: mistakes in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
gilmaimon committed Mar 8, 2019
1 parent 92f1319 commit b10ea71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/Esp32-Server/Esp32-Server.ino
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ void setup() {
}

void loop() {
auto client = server.accept();
WebsocketsClient client = server.accept();
if(client.available()) {
WebsocketsClient msg = client.readBlocking();
WebsocketsMessage msg = client.readBlocking();

// log
Serial.print("Got Message: ");
Expand Down
4 changes: 2 additions & 2 deletions examples/Esp8266-Server/Esp8266-Server.ino
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ void setup() {
}

void loop() {
auto client = server.accept();
WebsocketsClient client = server.accept();
if(client.available()) {
WebsocketsClient msg = client.readBlocking();
WebsocketsMessage msg = client.readBlocking();

// log
Serial.print("Got Message: ");
Expand Down

0 comments on commit b10ea71

Please sign in to comment.