Today I faced WebSocket connection issue. It has been working for the last several months with no issues. I am attaching the error log. The issue got resolved after revalidating the session token. Kindly suggest a workaround, so that this problem will not arise in the future.
API and WebSocket re-auth happens every day around 07:30 AM. So, you need to use fresh access token, every day. This is as per exchange regulation. This thread explains more.