mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-01 02:52:49 +08:00
10 lines
403 B
TypeScript
10 lines
403 B
TypeScript
/** The HTTP port is part of the WebSpeak deployment contract. */
|
|
export const APP_PORT = 3040;
|
|
|
|
/** Hard safety ceiling for independently connected browser sessions. */
|
|
export const MAX_ACTIVE_SESSIONS = 100;
|
|
|
|
export function canAcceptSession(activeSessionCount: number): boolean {
|
|
return Number.isInteger(activeSessionCount) && activeSessionCount >= 0 && activeSessionCount < MAX_ACTIVE_SESSIONS;
|
|
}
|