@matrix-widget-toolkit/api@5.1.0
Highlights
Besides the usual dependency updates and bug fixes™️, version 5.1.0 brings support for two new Matrix Spec Proposals to the Widget API.
Sticky events (MSC4407) let a widget send short-lived events that the homeserver keeps delivering for a configurable duration. sendRoomEvent() and sendDelayedRoomEvent() accept a new stickyDurationMs option, and the new isRoomEventCurrentlySticky() helper tells you whether a received event is still within its sticky window.
RTC transports discovery (MSC4515) adds widgetApi.getRtcTransports(), so a widget can ask the hosting client which real-time transports are available.
Both proposals are still unstable, so what you actually get depends on the hosting client and homeserver supporting them.
Minor Changes
- c246174: Add support for RTC transports discovery (MSC4515)
- 5f2f76a: Add support for sticky events (MSC4407)