Hello, is it possible to receive the close code, once the connection state is "Reconnecting"?
Giving the context, we are passing user's auth token to header when trying to connect to the web-socket. In case the token is invalid, back-end closes connection with specific error code, which mobile should recognize and regenerate the token.
So is it possible to intercept the close code between reconnection attempts by web_socket_client?
Description
Hello, is it possible to receive the close code, once the connection state is "Reconnecting"?
Giving the context, we are passing user's auth token to header when trying to connect to the web-socket. In case the token is invalid, back-end closes connection with specific error code, which mobile should recognize and regenerate the token.
So is it possible to intercept the close code between reconnection attempts by web_socket_client?