UNPKG

rjweb-server

Version:

Easy and Robust Way to create a Web Server with Many Easy-to-use Features in NodeJS

6 lines (5 loc) 396 B
import { WsContext } from "../types/implementation/contexts/ws"; import { WebsocketData } from "../types/implementation/handle"; import { Server } from "../index"; import { UsableMiddleware } from "../classes/Middleware"; export default function wsHandler({ context, custom, aborter }: WebsocketData, ws: WsContext, server: Server<any, any, any>, middlewares: UsableMiddleware[]): Promise<void>;