1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-23 17:02:25 +03:00

Log when turn creds expire

This commit is contained in:
David Baker
2021-02-26 14:47:27 +00:00
parent a8b9d8e3ae
commit d07563013b
2 changed files with 15 additions and 0 deletions

View File

@@ -138,6 +138,8 @@ export class CallEventHandler {
);
}
const timeUntilTurnCresExpire = this.client.getTurnServersExpiry() - Date.now();
logger.info("Current turn creds expire in " + timeUntilTurnCresExpire + " seconds");
call = createNewMatrixCall(this.client, event.getRoomId(), {
forceTURN: this.client._forceTURN,
});