When the page that contains the Genesys web messaging JavaScript snippet is navigated away from while the messenger is open the below WebSocket errors are displayed in the web browser console.
Is this expected and acceptable?
What can be done to fix from the parent webpage script if anything?
Is there anything that can be done to catch these errors or suppress them?
Those error messages are expected and are generated by the Genesys web messaging code that is managing the websocket connection to Genesys. There isn't anything the parent page can do to "fix" them because they aren't broken.
To my knowledge there is no way to intercept them or suppress them.