The above works for when connection is connected and when disconnected after compoent is loaded.
But if the socket connection fails before the component is loaded eg: when a page is refreshed with a wrong socket url, disconnect doesnt work (log)
How can i listen for failing connection when page is first loaded.
Currently i can listen to socket disconnects in vue component via
The above works for when connection is connected and when disconnected after compoent is loaded. But if the socket connection fails before the component is loaded eg: when a page is refreshed with a wrong socket url, disconnect doesnt work (log)
How can i listen for failing connection when page is first loaded.