1 | import { Application, Params, RealTimeConnection } from '@feathersjs/feathers';
|
2 | import { Socket } from 'socket.io';
|
3 | export type ParamsGetter = (socket: Socket) => any;
|
4 | export type NextFunction = (err?: any) => void;
|
5 | export interface FeathersSocket extends Socket {
|
6 | feathers?: Params & {
|
7 | [key: string]: any;
|
8 | };
|
9 | }
|
10 | export declare const disconnect: (app: Application, getParams: ParamsGetter, socketMap: WeakMap<RealTimeConnection, FeathersSocket>) => (socket: FeathersSocket, next: NextFunction) => void;
|
11 | export declare const params: (_app: Application, socketMap: WeakMap<RealTimeConnection, FeathersSocket>) => (socket: FeathersSocket, next: NextFunction) => void;
|
12 | export declare const authentication: (app: Application, getParams: ParamsGetter, settings?: any) => (socket: FeathersSocket, next: NextFunction) => void;
|