вложения, канальчики, бим-бим + бам-бам

This commit is contained in:
2026-04-25 00:51:12 +06:00
parent 0b75148a3f
commit ad477ee813
61 changed files with 14636 additions and 375 deletions

View File

@@ -1,14 +1,14 @@
import type { types } from 'mediasoup'
import type { Server as SocketServer } from 'socket.io'
import type { PrismaClient } from '../prisma/generated-client/client.ts'
import type {
ChadClient,
SomeSocket,
} from '../types/webrtc.ts'
import { consola } from 'consola'
import prisma from '../prisma/client.ts'
import { socketToClient } from '../utils/socket-to-client.ts'
export default async function (io: SocketServer, router: types.Router) {
export default async function (io: SocketServer, router: types.Router, prisma: PrismaClient) {
const audioLevelObserver = await router.createAudioLevelObserver({
maxEntries: 10,
threshold: -80,