When you have a website which updates using a websocket, but you do not have direct access to the websocket, you can use the following technique to catch when the DOM is updated:
Using headless chrome via the websockets interface | by Lucas M | Medium