Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CommunicationClient
    • MessageBasedClient

Index

Constructors

constructor

Properties

Protected Readonly Abstract activeListeners

activeListeners: Map<string, unknown> = ...

The listeners that will be notified of new messages

Protected Readonly keyPair

keyPair: KeyPair

Protected Readonly name

name: string

Methods

Protected createCryptoBox

  • createCryptoBox(otherPublicKey: string, selfPrivateKey: Uint8Array): Promise<[Uint8Array, Uint8Array, Uint8Array]>

Protected createCryptoBoxClient

  • createCryptoBoxClient(otherPublicKey: string, selfPrivateKey: Uint8Array): Promise<CryptoKX>

Protected createCryptoBoxServer

  • createCryptoBoxServer(otherPublicKey: string, selfPrivateKey: Uint8Array): Promise<CryptoKX>

Protected decryptMessage

  • decryptMessage(senderPublicKey: string, payload: string): Promise<string>

Protected encryptMessage

  • encryptMessage(recipientPublicKey: string, message: string): Promise<string>

Protected encryptMessageAsymmetric

  • encryptMessageAsymmetric(recipientPublicKey: string, message: string): Promise<string>

getPairingRequestInfo

getPairingResponseInfo

getPublicKey

  • getPublicKey(): Promise<string>

getPublicKeyHash

  • getPublicKeyHash(): Promise<string>

Abstract init

  • init(): Promise<void>

Abstract sendMessage

start

  • start(): Promise<void>

unsubscribeFromEncryptedMessage

  • unsubscribeFromEncryptedMessage(senderPublicKey: string): Promise<void>

unsubscribeFromEncryptedMessages

  • unsubscribeFromEncryptedMessages(): Promise<void>

Generated using TypeDoc