0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:50:43 -05:00
server/project/src/di/Serializer.ts
Archangel b841addd78 Handle serializers asynchronously (!428)
In combination with my other PR handle all the serializers asynchronously too, this should almost result in a fully asynchronous sending of responses.

Reviewed-on: SPT/Server#428
Co-authored-by: Archangel <jesse@archangel.wtf>
Co-committed-by: Archangel <jesse@archangel.wtf>
2024-11-14 17:30:22 +00:00

12 lines
392 B
TypeScript

import { IncomingMessage, ServerResponse } from "node:http";
export class Serializer {
public async serialize(sessionID: string, req: IncomingMessage, resp: ServerResponse, body: any): Promise<void> {
throw new Error("Should be extended and overrode");
}
public canHandle(something: string): boolean {
throw new Error("Should be extended and overrode");
}
}