@agatee/socket
Version:
Socket module to use with Agatee CLI
12 lines (11 loc) • 423 B
TypeScript
import 'reflect-metadata';
import { Socket } from 'socket.io';
export interface onConnection {
onConnection: (socket: Socket) => void;
}
export declare function GatSocketModule(params: {
main: any;
interfaces?: any[];
}): void;
export declare function GatSocket(constructorFunc: any): any;
export declare function On(event?: string): (target: any, key: string | symbol, descriptor: PropertyDescriptor) => void;