sendMessage

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.

void
sendMessage
(
Socket recipient
,
JSONValue jsonMessage
)

Meta