UNPKG

sdg

Version:

pomelo ts

31 lines (30 loc) 736 B
import Io from 'socket.io'; import Application from '../application'; import { ILogger, IServerInfo } from './IApplication'; export interface IProxyOpts { context?: Application; routerContext?: Application; bufferMsg?: boolean; interval?: number; } export interface IServices { [key: string]: IService; } export interface IService { [key: string]: Function; } export interface IConnectorOpts { connector?: Function; socketOpts?: Io.ServerOptions; } export interface IServiceOpts { singleSession?: boolean; } export interface IApplicationOpts extends IProxyOpts, IServiceOpts { logger?: ILogger; base?: string; rpcServer?: { create: Function; }; serverInfo: IServerInfo; }