• Accept a connection and do the encryption handshaking to setup an encrypted connection.

    This is the opposite of connectWithEncryption, so for more information have a look at the documentation of that function. If something goes wrong the passed websocket connection will be closed.

    Parameters

    • connection: default
    • cryptoApis: CryptoApi[]

    Returns Promise<ConnectionInfo>