We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c605101 commit e50749aCopy full SHA for e50749a
websocket/frame/frame.ts
@@ -48,7 +48,7 @@ namespace $ {
48
49
let size = state & 0b0111_1111
50
if( size === 126 ) size = this.getUint16( 2 )
51
- else if( size === 127 ) size = this.getUint32( 2 )
+ else if( size === 127 ) size = this.getUint32( 6 )
52
53
return { size, mask }
54
@@ -57,7 +57,7 @@ namespace $ {
57
if( next.size >= 2**16 ) {
58
59
this.setUint8( 1, 127 | Number( next.mask ) << 7 )
60
- this.setUint32( 2, next.size )
+ this.setUint32( 6, next.size )
61
62
} else if( next.size >= 126 ) {
63
0 commit comments