Used sendall() inpreference to send
JSON messages that get concatinated are split on '\n' characters