It is said in the tsNet documentation:
If this option is used (set to true), is there a way to know if, after a connection attempt, the established connection uses SSL or not?“try_ssl”: Set this option to true to tell tsNet to try to connect via SSL. If the connection fails to establish via SSL, connect without using SSL.