跳到主要内容
版本:Next

@midwayjs/ws

Index

Type Aliases

Application

IMidwayWSApplication

IMidwayWSApplication: IMidwayApplication<IMidwayWSContext, { getConnectionMiddleware: ContextMiddlewareManager<Context, NextFunction, undefined>; useConnectionMiddleware: (middleware: CommonMiddlewareUnion<Context, NextFunction, undefined>) => void }> & WebSocket.Server

IMidwayWSConfigurationOptions

IMidwayWSConfigurationOptions: { enableServerHeartbeatCheck?: boolean; pubClient?: any; serverHeartbeatInterval?: number; subClient?: any } & Partial<WebSocket.ServerOptions> & IConfigurationOptions

IMidwayWSContext

IMidwayWSContext: IMidwayContext<WebSocket & { app: IMidwayWSApplication; isAlive: boolean }>

NextFunction

NextFunction: BaseNextFunction