UNPKG

719 BTypeScriptView Raw
1import http from 'http';
2import { Server, ServerOptions } from 'socket.io';
3import { Application } from '@feathersjs/feathers';
4declare module '@feathersjs/feathers/lib/declarations' {
5 interface Application<Services, Settings> {
6 io: any;
7 listen(options: any): Promise<http.Server>;
8 }
9}
10declare function configureSocketio(callback?: (io: Server) => void): (app: Application) => void;
11declare function configureSocketio(options: number | Partial<ServerOptions>, callback?: (io: Server) => void): (app: Application) => void;
12declare function configureSocketio(port: number, options?: Partial<ServerOptions>, callback?: (io: Server) => void): (app: Application) => void;
13export = configureSocketio;