Constructor
# new AppserviceApis(client, appserviceId)
Parameters:
| Name | Type | Description |
|---|---|---|
client |
A client with the appservice token configured. | |
appserviceId |
The `id` of the appservice, as per its registration file. |
Classes
Methods
# pingHomeserver(transactionId) → {Promise.<PingHomeserverResponse>}
This API asks the homeserver to call the /_matrix/app/v1/ping endpoint on the application service
to ensure that the homeserver can communicate with the application service.
Parameters:
| Name | Type | Description |
|---|---|---|
transactionId |
A unique ID that identifies the ping request. |
Promise.<PingHomeserverResponse>