RELAY JS SDK 3.24.0 Release
· One min read
We are happy to announce JavaScript SDK 3.24.0.
Upgrading is straightforward with our release process, which adheres to Semantic Versioning. Minor versions are guaranteed to not have breaking changes, so you can upgrade with confidence.
Added
- Support for
lockandunlockonRoomSessions. This will allow the locking of theRoomSessionwhich will prevent new members from being able to join. Additionally, room previews are stopped and replaced with a locked image. TheRoomSessioncan be unlocked through theunlockmethod.
const roomSession = new SignalWire.Video.RoomSession({
token: "<YourRoomToken>",
rootElement: document.getElementById("myVideoElement"),
});
// Short example that locks the room when a member joins and unlocks it when they leave.
roomSession.on("member.joined", (e) => {
roomSession.lock();
});
roomSession.on("member.leave", (e) => {
roomSession.unlock();
});
Fixed
- Removed Video prefix from
member.updatedevents to emit them properly.
Updated
- @singalwire/webrtc dependency
- @signalwire/core dependecy