Split ANY PDU evnt into RX and TX for receive and transmit

This commit is contained in:
David Majdandžić
2023-04-06 18:17:43 +02:00
parent 251658f385
commit 363e3f7fc2
9 changed files with 27 additions and 15 deletions

View File

@@ -145,7 +145,9 @@ export default class Client extends SmppSession {
let pduCopy = new smpp.PDU(pdu.command, {...pdu});
this.processors.Preprocessor.forEach((processor: PduProcessor) => processor.processPdu(this.session, pduCopy));
this.logger.log5(`Client-${this.id} sending PDU: ${JSON.stringify(pduCopy)}`);
this.session.send(pduCopy, (replyPdu: object) => resolve(replyPdu));
this.doSendPdu(pduCopy, this.session).then((replyPdu: any) => {
resolve(replyPdu);
});
});
}