dhwndud408

Results 7 comments of dhwndud408

> Did you try the code in the referenced issue? > > > if you specify the `transports` option explicitly then the code works, here's an example: > > let...

I changed the code. (8.2.2 latest version) ``` const socket = new stacks.StacksApiSocketClient({ url: socketUrl, socketOpts: { transports: ['websocket'], // { console.log("Socket Connection Error:"); console.log("Error Message:", err.message); console.log("Error Description:", err);...

This problem should be re-assigned on API Board

Maybe try running it for more than a day without reconnection.

> Is the client able to reconnect? How long does it take? Were you able to try these troubleshooting steps to narrow down the disconnect reason? https://socket.io/docs/v4/troubleshooting-connection-issues/#problem-the-socket-gets-disconnected I will try...

``` // Add socket error handling socket.socket.on("connect_error", (err) => { console.error("Socket Connection Error:"); console.error("Error Message:", err.message); console.error("Error Description:", err); // Attempt to reconnect after error setTimeout(() => { console.error("Attempting to...

When running the reconnecting, it doen't work consistantly. Attempting to reconnect... disconnect Reason: transport close Attempting to reconnect... disconnect Reason: transport close Attempting to reconnect... disconnect Reason: transport close