broadcast functionality of websockets