Skip to content

Commit

Permalink
Feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch committed Nov 13, 2023
1 parent fedb2b4 commit 5c5b4dc
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/web_socket.toit
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,6 @@ class WebSocket:
masking_length_byte := reader.read-byte
masking := (masking_length_byte & MASKING_FLAG_) != 0
len := masking_length_byte & 0x7f
header_size_needed := ?
if len == TWO_BYTE_SIZE_:
header_size_needed = masking ? 8 : 4
else if len == EIGHT_BYTE_SIZE_:
header_size_needed = masking ? 14 : 10
else:
header_size_needed = masking ? 6 : 2

if len == TWO_BYTE_SIZE_:
len = reader.big-endian.read-uint16 // BIG_ENDIAN.uint16 pending_ 2
Expand Down

0 comments on commit 5c5b4dc

Please sign in to comment.