Bug: wasm branch, in internal/interaction/ws_conn.go Reconn function ,if ws connect failed ,httpResp is nil,client can't know token expired or token kicked
What happened?
wasm branch, in internal/interaction/ws_conn.go Reconn function ,if ws connect failed ,httpResp is nil,client can't know token expired or token kicked
What did you expect to happen?
if ws connect failed ,i hope we can get http status code
How can we reproduce it (as minimally and precisely as possible)?
change ws package ?
Anything else we need to know?
No response
version
Cloud provider
OS version
Install tools
This is because in the event of a WebSocket connection failure, the WebAssembly (Wasm) module is unable to return the corresponding response, thus making it difficult to determine the specific reason for the connection failure. Special handling is required on the web client side in such cases. For instance, the connection can be assumed successful initially, and then the failure message regarding the token can be transmitted through WebSocket. It may take some time to process.
This issue has been fixed by #473 .