You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe that whilst the first call to send is successful, subsequent calls fail. This I believe is due to the code at line 356 in samsung.ts whereby the command is only actually sent following the opening of the websocket connection. Subsequent calls don't open a websocket so are not actually sent. This Hypothesis needs to be checked by someone more familiar then I.
The text was updated successfully, but these errors were encountered:
How would you tackle this @Toxblh ? Happy to contribute.
I saw you moved from keeping the WS socket as a global state. But now, the WS socket is not closed on each possible path (error, ...) and thus also created this bug.
It's not a problem to keep a connection. A big problem to match requests and responses in async. I can send requests 1, 2, 3 and receive 2, error, 1, and I can't pass an independent token to each request, that is why I use the approach open -> req -> res -> close to resolve this.
Another way it creates a queue and resolve requests like "sync" mode "open connection, pop from stack request, awaits a response, to receive a response, exec callback -> repeat from the step pop from stack"
I chose just to recreate a connection. A bit slower, but also easy to implement
I understand your point. Will improve works after any errors
I believe that whilst the first call to send is successful, subsequent calls fail. This I believe is due to the code at line 356 in samsung.ts whereby the command is only actually sent following the opening of the websocket connection. Subsequent calls don't open a websocket so are not actually sent. This Hypothesis needs to be checked by someone more familiar then I.
The text was updated successfully, but these errors were encountered: