feat: websockets (comment posting + liking)

This commit is contained in:
Face 2025-05-25 12:06:04 +03:00
parent 251609d7b8
commit 3f137e5c3c
15 changed files with 2200 additions and 5 deletions

View file

@ -33,7 +33,7 @@ export function getPublicUrl(key: string | null): string | null {
}
export function debounce(func: (...args: any[]) => void, wait: number) {
let timeout: number | undefined;
let timeout: ReturnType<typeof setTimeout> | undefined;
return function executedFunction(...args: any[]) {
const later = () => {
clearTimeout(timeout);