How programmatically connect to remote server with `tcp://` link ?

I develop a provider for the JetBrains Gateway.
I have a `tcp://` link and it is needed to connect to remote server (similar to `Connect with a Link` action).
How can I achieve it?
 

0
LinkedClientManager.getInstance().startNewClient(lifeTime, URI(tcpLink))

or

CodeWithMeUrlHandler.Util.performConnect(tcpLink) {}
0

请先登录再写评论。