Skip to content

Commit 007b5ba

Browse files
committed
ignore not needed WS events for SocketIO
1 parent dbca2ab commit 007b5ba

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/SocketIOclient.cpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,15 @@ void SocketIOclient::handleCbEvent(WStype_t type, uint8_t * payload, size_t leng
160160
DEBUG_WEBSOCKETS("[wsIOc] get text: %s\n", payload);
161161
break;
162162
}
163-
164-
// send message to server
165-
// webSocket.sendTXT("message here");
166163
} break;
167-
case WStype_BIN:
168-
DEBUG_WEBSOCKETS("[wsIOc] get binary length: %u\n", length);
169-
// hexdump(payload, length);
170164

171-
// send data to server
172-
// webSocket.sendBIN(payload, length);
165+
case WStype_BIN:
166+
case WStype_FRAGMENT_TEXT_START:
167+
case WStype_FRAGMENT_BIN_START:
168+
case WStype_FRAGMENT:
169+
case WStype_FRAGMENT_FIN:
170+
case WStype_PING:
171+
case WStype_PONG:
173172
break;
174173
}
175174
}

0 commit comments

Comments
 (0)