RELAY Realtime SDK 3.12.0
· One min read
We are happy to announce Realtime-API SDK 3.12.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
lock
andunlock
on RoomSessions. This will allow the locking of theRoomSession
which will prevent new members from being able to join. Additionally, room previews are stopped and replaced with a locked image. TheRoomSession
can be unlocked through the unlock method.
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();
});
- Support for
nodeId
. Optional parameter fordialSip
anddialPhone
that allows you to direct your calls through a specified node. This can help with efficient geolocation routing.
try {
const call = await client.dialSip({
from: "sip:xxx@yyy.zz",
to: "sip:ppp@qqq.rr",
timeout: 30,
nodeId: "NODE ID HERE"
});
} catch (e) {
console.log("Call not answered.");
}