(roomId: string)
| 9 | |
| 10 | // Sanitize roomId to prevent path traversal attacks |
| 11 | function sanitizeRoomId(roomId: string): string { |
| 12 | return roomId.replace(/[^a-zA-Z0-9_-]/g, '_') |
| 13 | } |
| 14 | |
| 15 | // We'll keep an in-memory map of active rooms |
| 16 | const rooms = new Map<string, TLSocketRoom<any, void>>() |
no test coverage detected
searching dependent graphs…