@ihadeed/transport-commons
Version:
Shared functionality for websocket providers
10 lines (9 loc) • 609 B
TypeScript
import { HookContext, Application } from '@ihadeed/feathers';
import { CombinedChannel } from '../channels/channel/combined';
import { RealTimeConnection } from '../channels/channel/base';
export declare const paramsPositions: {
[key: string]: number;
};
export declare function normalizeError(e: any): any;
export declare function getDispatcher(emit: string, socketKey: any): (event: string, channel: CombinedChannel, context: HookContext<any, any>, data: any) => void;
export declare function runMethod(app: Application, connection: RealTimeConnection, path: string, method: string, args: any[]): void;