@sodacore/ws
Version:
Sodacore ws is a core plugin that extends the Http plugin offering WebSocket support to the Sodacore framework.
16 lines • 477 B
TypeScript
import type { HttpContext, IServerContext } from '@sodacore/http';
export type IConfig = {
port?: number;
path?: string | string[];
keepAlive?: boolean;
idleTimeout?: number;
backpressureLimit?: number;
maxPayloadLength?: number;
closeOnBackpressureLimit?: boolean;
publishToSelf?: boolean;
perMessageDeflate?: unknown;
};
export type IServerWsContext = IServerContext & {
httpContext: HttpContext;
};
//# sourceMappingURL=types.d.ts.map