UNPKG

434 BTypeScriptView Raw
1import http from 'http';
2import io from 'socket.io';
3
4declare const socketio: FeathersSocketIO;
5export = socketio;
6
7interface FeathersSocketIO {
8 (callback?: (io: io.Server) => void): (app: any) => void;
9 (options: number | io.ServerOptions, callback?: (io: io.Server) => void): (app: any) => void;
10 (port: number, options?: io.ServerOptions, callback?: (io: io.Server) => void): (app: any) => void;
11 default: FeathersSocketIO;
12}