@ledgerhq/live-app-sdk / Exports / WindowMessageTransport
• new WindowMessageTransport(target?
, logger?
)
Name | Type | Default value |
---|---|---|
target |
Window |
window |
logger |
default |
defaultLogger |
transports/windowMessageTransport.ts:14
• Private
Optional
_onMessage: MessageHandler
transports/windowMessageTransport.ts:12
• Private
logger: default
transports/windowMessageTransport.ts:10
• Private
target: Window
transports/windowMessageTransport.ts:8
• get
onMessage(): undefined
| MessageHandler
A function to handle new messages coming from the Ledger Live platform
undefined
| MessageHandler
transports/windowMessageTransport.ts:79
• set
onMessage(handler
): void
A function to handle new messages coming from the Ledger Live platform
Name | Type |
---|---|
handler |
undefined | MessageHandler |
void
transports/windowMessageTransport.ts:75
▸ _onMessageEvent(event
): void
Name | Type |
---|---|
event |
MessageEvent <any > |
void
transports/windowMessageTransport.ts:41
▸ connect(): void
Connect the transport instance
void
transports/windowMessageTransport.ts:19
▸ disconnect(): void
Disconnect the transport instance
void
transports/windowMessageTransport.ts:30
▸ send(response
): Promise
<void
>
A function to send new messages to the Ledger Live platform
Name | Type |
---|---|
response |
unknown |
Promise
<void
>