The virtual display doesn't update occasionally after a run. A better solution should be devised than a time-based wait for it to poll for the websocket. Perhaps the emulator waits until it connects or hits a much higher timeout.
This has been solved by refactoring how the screen sends data to the extension. It no longer creates a websocket, rather it sends a custom DAP event with the data.
The virtual display doesn't update occasionally after a run. A better solution should be devised than a time-based wait for it to poll for the websocket. Perhaps the emulator waits until it connects or hits a much higher timeout.