swaf/dist/WebSocketListener.d.ts
2020-04-22 17:49:58 +02:00

9 lines
333 B
TypeScript

/// <reference types="node" />
/// <reference types="express-session" />
import WebSocket from "ws";
import { IncomingMessage } from "http";
export default abstract class WebSocketListener {
abstract path(): string;
abstract handle(socket: WebSocket, request: IncomingMessage, session: Express.SessionData): Promise<void>;
}