Note that a single message may get split across different packets, e.g. you may receive "type":"ge and tpeers" in separate messages. So you should defragment such JSON strings. Alternatively, a single packet could contain multiple messages (separated by "\n") and your node should be able to separate them. Note that JSON strings you receive may not be in canonical form, but they are valid messages nevertheless.
Scope
Defragment messages
Split messages by \n
We should already be accepting messages in non-canonical JSON
Description
Note that a single message may get split across different packets, e.g. you may receive "type":"ge and tpeers" in separate messages. So you should defragment such JSON strings. Alternatively, a single packet could contain multiple messages (separated by "\n") and your node should be able to separate them. Note that JSON strings you receive may not be in canonical form, but they are valid messages nevertheless.
Scope
\n