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