refine the websocket and broadcast actor