Skip to content

Commit

Permalink
Update frame.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tsctx authored Jul 6, 2024
1 parent 79b3773 commit 577ac48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/web/websocket/frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class WebsocketFrameSend {
const head = Buffer.allocUnsafeSlow(offset)

head[0] = 0x80 /* FIN */ | 0x1 /* opcode TEXT */
head[1] = payloadLength
head[1] = payloadLength | 0x80 /* MASK */
head[offset - 4] = maskKey[0]
head[offset - 3] = maskKey[1]
head[offset - 2] = maskKey[2]
Expand Down

0 comments on commit 577ac48

Please sign in to comment.