By Guest on Thursday, 31 March 2022
Posted in General
Replies 1
Likes 0
Views 828
Votes 0
Hi Folks!
When connecting to a server using the tsgcwebsocketclient1 sometimes the windows freezes, how can I handle this?
Thanks in advance.
Hello,

By default, the client connects and blocks the thread from where it's called till the TCP connection is successful or there is an error.
If you want to open a connection without waiting, use the "Start" method instead of Active or Connect.

You can read more about it:

https://www.esegece.com/help/sgcWebSockets/#t=Components%2FTsgcWebSocketClient%2FConnection%2FClient_Start_Connection.htm

Kind Regards,
Sergio
·
2 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post