UNPKG

rjweb-server

Version:

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

14 lines (13 loc) 385 B
/// <reference types="node" /> import { HttpContext } from "./contexts/http"; import { WsContext } from "./contexts/ws"; import RequestContext from "../internal/classes/RequestContext"; export type WebsocketData = { context: RequestContext; custom: Record<string, any>; aborter: AbortController; }; export type HandleRecord = { http: HttpContext; ws: WsContext; };