RFC Errata
RFC 6455, "The WebSocket Protocol", December 2011
Note: This RFC has been updated by RFC 7936, RFC 8307, RFC 8441
Source of RFC: hybi (app)
Errata ID: 5288
Status: Reported
Type: Editorial
Publication Format(s) : TEXT
Reported By: champkeh
Date Reported: 2018-03-20
Section 5.2 says:
frame-payload-length-16 = %x0000-FFFF ; 16 bits in length frame-payload-length-63 = %x0000000000000000-7FFFFFFFFFFFFFFF ; 64 bits in length frame-masking-key = 4( %x00-FF ) ; present only if frame-masked is 1 ; 32 bits in length
It should say:
frame-payload-length-16 = %x0000-FFFF ; 16 bits in length frame-payload-length-63 = %x0000000000000000-7FFFFFFFFFFFFFFF ; 64 bits in length frame-masking-key = %x00000000-FFFFFFFF ; present only if frame-masked is 1 ; 32 bits in length
Notes:
frame-masking-key is 32bits in length