connect

fun connect(enableModule: Set<Modules>, userPrivateKey: String, solutionId: String, bridgeUrl: String): PrivmxEndpoint

Creates a new connection.

Return

Created connection

Parameters

enableModule

set of modules to initialize

bridgeUrl

PrivMX Bridge server URL

solutionId

SolutionId of the current project

userPrivateKey

user private key used to authorize; generated from: CryptoApi.generatePrivateKey or CryptoApi.derivePrivateKey2

Throws

if there is a problem during login

if there is an unknown problem during login