Skip to content

Connection

@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/connection

Wallet Connection base module

Example

import WalletConnection from '@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/connection'

@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/connection.connect(onMessage) ⇒ void

Connect

Kind: instance abstract method of @aeternity/aepp-sdk/es/utils/aepp-wallet-communication/connection
rtype: (onMessage: Function) => void

Param Type Description
onMessage function Message handler

@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/connection.disconnect() ⇒ void

Disconnect

Kind: instance abstract method of @aeternity/aepp-sdk/es/utils/aepp-wallet-communication/connection
rtype: () => void

@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/connection.sendMessage(msg) ⇒ void

Send message

Kind: instance abstract method of @aeternity/aepp-sdk/es/utils/aepp-wallet-communication/connection
rtype: (msg: Object) => void

Param Type Description
msg Object Message

@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/connection.isConnected() ⇒ Boolean

Check if connected

Kind: instance abstract method of @aeternity/aepp-sdk/es/utils/aepp-wallet-communication/connection
Returns: Boolean - Is connected
rtype: () => Boolean