mirror of
https://github.com/storytold/soundcraft.git
synced 2026-11-13 17:36:10 -06:00
A line that was not JSON got a "bad JSON" error reply and the server kept reading the same connection. A JSON value that was not an object, or had no string `method`, was forwarded to the UI as a request with an empty method. Now a line that is not a JSON object with a string `method` gets one error reply and the connection is closed, as in the other Craft apps' control servers. Control clients send one request object per line, so a peer that sends anything else is not one, and nothing it sends after that line is run. Valid requests and blank lines are handled as before. The protocol doc says so next to the error format.