вложения, канальчики, бим-бим + бам-бам
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user