Refactor sessionManagers

This commit is contained in:
David Majdandžić
2023-03-29 17:08:55 +02:00
parent ba9ec3d40d
commit 74915eb7a5
7 changed files with 173 additions and 95 deletions

View File

@@ -273,6 +273,10 @@ export class Center implements SmppSession {
this.defaultSingleJob = job;
}
getPort(): number {
return this.port;
}
private validateSessions(reject: (reason?: any) => void) {
if (this.sessions.length === 0) {
reject(`No clients connected`);