Properly close the connection (with opcode).
Add “code” & “reason” data for “close”.

Additionally, detect new protocol errors:
    • invalid code;
    • too big reason.
Detect a new protocol error: invalid unicode.
Simplify code. #mania
Detect a new protocol error: invalid code.
Remove a detection: unicode on ping (not needed).