It is possible to enforce timeout for the socket connection task. The timeout is a int value expressed in milliseconds. Note that this setting will apply to connections used for openConnection, subscriptions and other control requests.
The default setting is -1 (infinite wait)
public: __property int ConnectTimeoutMillis;
public int ConnectTimeoutMillis;
Public Property ConnectTimeoutMillis() As Integer