UNPKG

@feathersjs/transport-commons

Version:

Shared functionality for websocket providers

10 lines (9 loc) 395 B
import { Application, RealTimeConnection } from '@feathersjs/feathers'; export interface SocketOptions { done: Promise<any>; emit: string; socketMap: WeakMap<RealTimeConnection, any>; socketKey?: any; getParams: (socket: any) => RealTimeConnection; } export declare function socket({ done, emit, socketMap, socketKey, getParams }: SocketOptions): (app: Application) => void;