abstract fun connectTo(peerPublicKey: PublicKey!, peerAddress: InetSocketAddress!): AsyncResult<String!>!
(source)
Connects to a remote peer
peerPublicKey
- PublicKey!: the peer public key
peerAddress
- InetSocketAddress!: the peer host and port
Return
AsyncResult<String!>!: a handle that completes if the peer connects successfully, providing the connection ID.