use websocket to update chart data