Skip to content

Latest commit

 

History

History
89 lines (47 loc) · 1.47 KB

Transport.md

File metadata and controls

89 lines (47 loc) · 1.47 KB

@ledgerhq/live-app-sdk / Exports / Transport

Interface: Transport

A transport protocol used to communicate with the Ledger Live platform

alpha

Implemented by

Table of contents

Properties

Methods

Properties

onMessage

onMessage: undefined | MessageHandler

A function to handle new messages coming from the Ledger Live platform

Defined in

types.ts:37

Methods

connect

connect(): void

Connect the transport instance

Returns

void

Defined in

types.ts:29


disconnect

disconnect(): void

Disconnect the transport instance

Returns

void

Defined in

types.ts:33


send

send(payload): Promise<void>

A function to send new messages to the Ledger Live platform

Parameters

Name Type
payload unknown

Returns

Promise<void>

Defined in

types.ts:41