add broadcast functionality

this helps to broadcast a message to all the listening clients