mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:50:43 -05:00
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>
12 lines
392 B
TypeScript
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");
|
|
}
|
|
}
|