hello
in my app I (succesfully) use a client socket.
Where I will use my program, the wifi line quality is not so good, so I need to detect a network "connection lost" to reconnect asap
the Socket object has no tcpSocket_ConnectionLost event nor tcpSocket_error and, if I close the server winsocket connection, the tcpSocket status remains "connected"
I use asyncstreams, and all I get is a Stream_error when the connection "was lost, maybe minutes ago"
I would like to know that I need to reconnect before I try to communicate
what is the correct way to manage a socket connection?
:sign0085:
thank you
in my app I (succesfully) use a client socket.
Where I will use my program, the wifi line quality is not so good, so I need to detect a network "connection lost" to reconnect asap
the Socket object has no tcpSocket_ConnectionLost event nor tcpSocket_error and, if I close the server winsocket connection, the tcpSocket status remains "connected"
I use asyncstreams, and all I get is a Stream_error when the connection "was lost, maybe minutes ago"
I would like to know that I need to reconnect before I try to communicate
what is the correct way to manage a socket connection?
:sign0085:
thank you