File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments