Generalized socket send function which will send the JSON encoded message, jsonMessage, over to the client at the other end of the socket, recipient.
It gets the length of jsonMessage and encodes a 4 byte message header in little-endian containing the message's length.
See Implementation
Generalized socket send function which will send the JSON encoded message, jsonMessage, over to the client at the other end of the socket, recipient.
It gets the length of jsonMessage and encodes a 4 byte message header in little-endian containing the message's length.