Skip to content

Voice · Modules

6 modules · 22 exports · 1 repository · 0 e2e tests · 4 routes

Who imports who · hover a node
Depends onVoice modulesUsed byEventBus.servereventsDaily.server8 exportsVoiceAccess3 exportsVoiceAvailability.serverVoiceCost3 exportsVoiceEject.server1 expo…VoicePresence.server4 …Loaders1 fileRoutes2 filesActions2 files

Daily

serverapp/features/voice/core/Daily.server.ts

No overview comment at the top of the file.

Imports
no other modules
Used by
1 loader2 routes3 modules

Functions & values

function

isConfigured

no JSDoc:20
export function isConfigured()
function

chatRoomIdFromRoomName

no JSDoc:28
export function chatRoomIdFromRoomName(name: string)
Unit tests (2)
function

roomUrl

no JSDoc:35
export function roomUrl(chatRoomId: number)
function

ensureRoom

no JSDoc:39
export async function ensureRoom({
	chatRoomId,
	expiresAt,
}: {
	chatRoomId: number;
	expiresAt: number;
})
function

createMeetingToken

no JSDoc:77
export async function createMeetingToken({
	chatRoomId,
	userId,
	userName,
	expiresAt,
}: {
	chatRoomId: number;
	userId: number;
	userName: string;
	expiresAt: number;
})
function

ejectUsers

no JSDoc:106
export async function ejectUsers({
	chatRoomId,
	userIds,
	ban,
}: {
	chatRoomId: number;
	userIds: number[];
	ban: boolean;
})
function

findPresentUserIds

no JSDoc:128
export async function findPresentUserIds(chatRoomId: number)
function

isValidWebhookSignature

no JSDoc:147
export function isValidWebhookSignature({
	rawBody,
	timestamp,
	signature,
	secret,
}: {
	rawBody: string;
	timestamp: string;
	signature: string;
	secret: string;
})
Unit tests (1)

Not shown, only used by tests: roomName

VoiceAccess

app/features/voice/core/VoiceAccess.ts

No overview comment at the top of the file.

Imports
no other modules
Used by
1 route

Functions & values

function

isVoiceRoomType

no JSDoc:10
export function isVoiceRoomType(type: ChatRoomType)
function

canJoin

no JSDoc:14
export function canJoin(room: VoiceRoom, userId: number)
Unit tests (1)
function

canKick

no JSDoc:22
export function canKick(room: VoiceRoom, userId: number)
Unit tests (1)

VoiceCost

app/features/voice/core/VoiceCost.ts

No overview comment at the top of the file.

Imports
no other modules
Used by
1 loader1 module

Functions & values

function

monthlyCostUsd

no JSDoc:7
export function monthlyCostUsd(participantMinutes: number)
Unit tests (1)
function

isOverBudget

no JSDoc:16
export function isOverBudget(participantMinutes: number)
Unit tests (1)
function

projectedMonthlyCostUsd

no JSDoc:20
export function projectedMonthlyCostUsd({
	participantMinutes,
	monthProgress,
}: {
	participantMinutes: number;
	monthProgress: number;
})
Unit tests (1)

VoicePresence

serverapp/features/voice/core/VoicePresence.server.ts

No overview comment at the top of the file.

Imports
EventBus.serverDaily.server
Used by
1 loader2 routes1 module

Functions & values

function

allOccupiedRooms

no JSDoc:23
export function allOccupiedRooms()
function

add

no JSDoc:29
export function add(room: PresenceRoom, userId: number)
function

remove

no JSDoc:40
export function remove(room: PresenceRoom, userIds: number[])