Skip to content

Commit 5112340

Browse files
authored
Correct the units in TURN servers expiry documentation (#2520)
As shown elsewhere in client.ts, turnServersExpiry really is in milliseconds rather than seconds. It seems that other libraries like matrix-react-sdk were already expecting it to be in milliseconds anyways, so it's just the documentation that was wrong.
1 parent 6fb40d4 commit 5112340

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6292,9 +6292,9 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
62926292
}
62936293

62946294
/**
6295-
* Get the unix timestamp (in seconds) at which the current
6295+
* Get the unix timestamp (in milliseconds) at which the current
62966296
* TURN credentials (from getTurnServers) expire
6297-
* @return {number} The expiry timestamp, in seconds, or null if no credentials
6297+
* @return {number} The expiry timestamp, in milliseconds, or null if no credentials
62986298
*/
62996299
public getTurnServersExpiry(): number | null {
63006300
return this.turnServersExpiry;

0 commit comments

Comments
 (0)