refactor
All checks were successful
Deploy / deploy (push) Successful in 39s

This commit is contained in:
2025-12-26 01:08:44 +06:00
parent 2ac88f1010
commit 7ed23df3e9
4 changed files with 207 additions and 163 deletions

View File

@@ -0,0 +1,12 @@
import type { ChadClient, SomeSocket } from '../types/webrtc.ts'
export function socketToClient(socket: SomeSocket): ChadClient {
return {
socketId: socket.id,
userId: socket.data.userId,
username: socket.data.username,
displayName: socket.data.displayName,
inputMuted: socket.data.inputMuted,
outputMuted: socket.data.outputMuted,
}
}