Allow components to listen to websocket broadcasted events and to fire events on the websocket server.