跳到主要内容
版本:Next

@midwayjs/socketio

Index

Type Aliases

Application

Application: IMidwayApplication<Context, { getConnectionMiddleware: ContextMiddlewareManager<Context, NextFunction, undefined>; useConnectionMiddleware: (middleware: CommonMiddlewareUnion<Context, NextFunction, undefined>) => void; use: any } & SocketIO.Server>

Context

Context: IMidwayContext<SocketIO.Socket & { app: Application }>

IMidwaySocketIOOptions

IMidwaySocketIOOptions: { port?: number; pubClient?: any; subClient?: any } & Partial<SocketIO.ServerOptions> & IConfigurationOptions

NextFunction

NextFunction: BaseNextFunction