Home Forums Support Connection Establish/close handler example Reply To: Connection Establish/close handler example

#784
Anonymous
Inactive

heya gregj,

Thanks for the post. I agree the connection establish handler should probably be called on the client side. We’ll create a bug report and try to ensure this gets fixed in the next release.

In the mean time if the method

client = TCPConnection.GetConnection(_tcpInfo);

returns without exceptions you can safely assume the connection has been succesfully established. This should allow you to use the following as a temporary workaround:

client = TCPConnection.GetConnection(_tcpInfo);

//If we get to this point without an exception trigger the connection handler manually
onConnection(client);

Regards,

Marc