Skip to content

Opcode check inaccuracy #50

@truekenny

Description

@truekenny

$opcode_int = ord($data[0]) & 31; // Bits 4-7

31 is 11111b, to check 4 bits, use the constant 15 (1111b).
This is not so important now, because the algorithm grabs the RSV3 bit, which should now be 0.
https://tools.ietf.org/html/rfc6455#section-5.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions