Skip to content

Close the connection on malformed binary messages - #321

Open
maximmaxim345 wants to merge 3 commits into
mainfrom
fix/binary-message-close-rules
Open

maximmaxim345 wants to merge 3 commits into
mainfrom
fix/binary-message-close-rules

Conversation

@maximmaxim345

Copy link
Copy Markdown
Member

The spec didn't say what to do with a binary message that has no message ID, a JSON message (ID 0) that isn't a valid JSON object with a type string and a payload object, or a player, source or visualizer message shorter than its header.

These are now protocol errors that close the connection. This follows the existing artwork rule for messages shorter than 2 bytes and the truncated fragment frames added in:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant