Skip to content

Commit 8664861

Browse files
Update src/AsyncWebSocket.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4e2a251 commit 8664861

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/AsyncWebSocket.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ void AsyncWebSocketClient::_onData(void *pbuf, size_t plen) {
515515
_pinfo.index = 0;
516516
_pinfo.final = (fdata[0] & 0x80) != 0;
517517
_pinfo.opcode = fdata[0] & 0x0F;
518+
// _pinfo.masked is a boolean: 1 if the frame is masked, 0 otherwise. Do not use as a counter.
518519
_pinfo.masked = ((fdata[1] & 0x80) != 0) ? 1 : 0;
519520
_pinfo.len = fdata[1] & 0x7F;
520521

0 commit comments

Comments
 (0)