swaf/src/WebSocketListener.ts

8 lines
279 B
TypeScript
Raw Normal View History

2020-04-22 15:52:17 +02:00
import WebSocket from "ws";
import {IncomingMessage} from "http";
export default abstract class WebSocketListener {
public abstract path(): string;
public abstract async handle(socket: WebSocket, request: IncomingMessage, session: Express.SessionData): Promise<void>;
}