The message on the other end must be received using networkd.Node.getEvent because before sending, the message is not sent raw.
The first 4 bytes (32 bits) contain the size of the message, including these 4 bytes
This is followed by one char, which class Node uses to identify what type of message it is (from enum MessageType)
This is followed by the content of the message. If the content is too large, it is split up into several packets.
The max message size is 5 bytes less than 4 gigabytes (4294967291 bytes)
If the connection to which it is being sent has sent its encryption public key, the message's content will be encrypted before sending
Sends a message to a Node using connection ID
The message on the other end must be received using networkd.Node.getEvent because before sending, the message is not sent raw. The first 4 bytes (32 bits) contain the size of the message, including these 4 bytes This is followed by one char, which class Node uses to identify what type of message it is (from enum MessageType) This is followed by the content of the message. If the content is too large, it is split up into several packets. The max message size is 5 bytes less than 4 gigabytes (4294967291 bytes)
If the connection to which it is being sent has sent its encryption public key, the message's content will be encrypted before sending