swaf/dist/WebSocketListener.d.ts

9 lines
333 B
TypeScript
Raw Normal View History

2020-04-22 15:52:17 +02:00
/// <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>;
}