Alexa.ExtensionsMessageProvider Interface
Message interface that any device or mock device must fulfill to integrate with Client.
Constructors
constructor
constructor: Object
Properties
endpointFunctionName
endpointFunctionName: string
Methods
receive
receive(callback): void
Register the callback for when events from the device are received.
Parameters
| Name | Type | Description |
|---|---|---|
callback |
(message: string) => void |
Function to be called whenever a message is received from the device. Function should take Message as a parameter to receive the contents of the message. |
Returns
void
send
send(message): Promise<void>
Sends the command and payload to the device or service responsible for handling events.
Parameters
| Name | Type | Description |
|---|---|---|
message |
string |
Data to be used with the command by the device; |
Returns
Promise<void>
A promise that is resolved once the message has been delivered
Was this page helpful?
Last updated: Nov 20, 2026