update websocket in api page