More refactoring

This commit is contained in:
David Majdandžić
2023-03-29 19:15:49 +02:00
parent ad63061209
commit 7f00cffb40
6 changed files with 36 additions and 33 deletions

View File

@@ -0,0 +1,15 @@
import {PduProcessor} from "./PduProcessor";
export class PduDebugProcessor implements PduProcessor {
processPdu(session: any, pdu: any, ...args: any[]): Promise<any> {
return new Promise<any>((resolve, reject) => {
session.send(pdu.response(), (replyPdu: any) => {
resolve(replyPdu);
});
})
}
serialize(): object {
return {};
}
}