Constructor
# new SynchronousMatrixClient(baseClient)
Creates a new SynchronousMatrixClient. Note that this accepts a MatrixClient, though
much of the class's properties are not brought over. Always convert your MatrixClient
instance to a SynchronousMatrixClient as soon as possible to avoid diversion in which
properties are proxied over.
Parameters:
Name | Type | Description |
---|---|---|
baseClient |
MatrixClient
|
The client to wrap. |
Classes
Methods
# protected onAccountData(event) → {Promise.<any>}
Handles the `account_data` event raised by the client.
Parameters:
Name | Type | Description |
---|---|---|
event |
any
|
The account data event. |
Resolves when complete.
Promise.<any>
# protected onRoomAccountData(roomId, event) → {Promise.<any>}
Handles the `room.account_data` event raised by the client.
Parameters:
Name | Type | Description |
---|---|---|
roomId |
string
|
The Room ID the account data applies to. |
event |
any
|
The room account data event. |
Resolves when complete.
Promise.<any>
# protected onRoomArchived(roomId, event) → {Promise.<any>}
Handles the `room.archived` event raised by the client.
Parameters:
Name | Type | Description |
---|---|---|
roomId |
string
|
The Room ID the event happened in. |
event |
any
|
The event. |
Resolves when complete.
Promise.<any>
# protected onRoomEvent(roomId, event) → {Promise.<any>}
Handles the `room.event` event raised by the client.
Parameters:
Name | Type | Description |
---|---|---|
roomId |
string
|
The Room ID the event happened in. |
event |
any
|
The event. |
Resolves when complete.
Promise.<any>
# protected onRoomInvite(roomId, event) → {Promise.<any>}
Handles the `room.invite` event raised by the client.
Parameters:
Name | Type | Description |
---|---|---|
roomId |
string
|
The Room ID the event happened in. |
event |
any
|
The event. |
Resolves when complete.
Promise.<any>
# protected onRoomJoin(roomId, event) → {Promise.<any>}
Handles the `room.join` event raised by the client.
Parameters:
Name | Type | Description |
---|---|---|
roomId |
string
|
The Room ID the event happened in. |
event |
any
|
The event. |
Resolves when complete.
Promise.<any>
# protected onRoomLeave(roomId, event) → {Promise.<any>}
Handles the `room.leave` event raised by the client.
Parameters:
Name | Type | Description |
---|---|---|
roomId |
string
|
The Room ID the event happened in. |
event |
any
|
The event. |
Resolves when complete.
Promise.<any>
# protected onRoomMessage(roomId, event) → {Promise.<any>}
Handles the `room.message` event raised by the client.
Parameters:
Name | Type | Description |
---|---|---|
roomId |
string
|
The Room ID the event happened in. |
event |
any
|
The event. |
Resolves when complete.
Promise.<any>
# protected onRoomUpgraded(roomId, event) → {Promise.<any>}
Handles the `room.upgraded` event raised by the client.
Parameters:
Name | Type | Description |
---|---|---|
roomId |
string
|
The Room ID the event happened in. |
event |
any
|
The event. |
Resolves when complete.
Promise.<any>