From 90af6ddccefdecb49006e7e273352b6edce6294a Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 26 Feb 2021 14:48:18 +0000 Subject: [PATCH] Log when turn creds expire Which, due to how special the js-sdk API is, needs to be done accross two different projects. --- src/CallHandler.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CallHandler.tsx b/src/CallHandler.tsx index ab3a601d93..42a38c7a54 100644 --- a/src/CallHandler.tsx +++ b/src/CallHandler.tsx @@ -629,6 +629,8 @@ export default class CallHandler { const mappedRoomId = (await VoipUserMapper.sharedInstance().getOrCreateVirtualRoomForRoom(roomId)) || roomId; logger.debug("Mapped real room " + roomId + " to room ID " + mappedRoomId); + const timeUntilTurnCresExpire = MatrixClientPeg.get().getTurnServersExpiry() - Date.now(); + console.log("Current turn creds expire in " + timeUntilTurnCresExpire + " seconds"); const call = createNewMatrixCall(MatrixClientPeg.get(), mappedRoomId); this.calls.set(roomId, call);