template-saas/apps/backend/__mocks__/socket.io.d.ts
rckrdmrd 50a821a415
Some checks failed
CI / Backend CI (push) Has been cancelled
CI / Frontend CI (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / CI Summary (push) Has been cancelled
[SIMCO-V38] feat: Actualizar a SIMCO v3.8.0
- HERENCIA-SIMCO.md actualizado con directivas v3.7 y v3.8
- Actualizaciones de configuracion

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 08:53:08 -06:00

35 lines
884 B
TypeScript

// Type declarations for socket.io mock
declare module 'socket.io' {
export class Server {
to(room: string): this;
in(room: string): this;
emit(event: string, ...args: any[]): boolean;
}
export interface Socket {
id: string;
handshake: {
auth: Record<string, any>;
query: Record<string, any>;
headers: Record<string, any>;
time: string;
address: string;
xdomain: boolean;
secure: boolean;
issued: number;
url: string;
};
rooms: Set<string>;
data: any;
connected: boolean;
join(room: string | string[]): void;
leave(room: string): void;
emit(event: string, ...args: any[]): boolean;
on(event: string, listener: Function): this;
once(event: string, listener: Function): this;
disconnect(close?: boolean): this;
to(room: string): this;
broadcast: any;
}
}