Simple broadcasting and repeating of JSON messages using net sockets