Skip to content

Commit 732f9bb

Browse files
committed
debug
1 parent b09ee04 commit 732f9bb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/debug/server_cdp.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,10 @@ def send **msg
344344

345345
def extract_data
346346
first_group = @sock.getbyte
347-
opcode = first_group & 0b00001111
348-
raise "Unsupported: #{opcode}" unless opcode == 1
349347
fin = first_group & 0b10000000 != 128
350348
raise 'Unsupported' if fin
349+
opcode = first_group & 0b00001111
350+
raise "Unsupported: #{opcode}" unless opcode == 1
351351

352352
second_group = @sock.getbyte
353353
mask = second_group & 0b10000000 == 128
@@ -419,13 +419,13 @@ def send **msg
419419

420420
def extract_data
421421
first_group = @sock.getbyte
422-
fin = first_group & 0b10000000 != 128
423-
raise 'Unsupported' if fin
424-
425422
opcode = first_group & 0b00001111
426423
raise Detach if opcode == 8
427424
raise "Unsupported: #{opcode}" unless opcode == 1
428425

426+
fin = first_group & 0b10000000 != 128
427+
raise 'Unsupported' if fin
428+
429429
second_group = @sock.getbyte
430430
mask = second_group & 0b10000000 == 128
431431
raise 'The client must mask all frames' unless mask

0 commit comments

Comments
 (0)