Fix issue with jobs
This commit is contained in:
@@ -61,8 +61,12 @@ export class Job {
|
||||
return new Job({}, 1, 1);
|
||||
}
|
||||
|
||||
serialize(): string {
|
||||
return JSON.stringify(this);
|
||||
serialize(): object {
|
||||
return {
|
||||
pdu: JSON.stringify(this.pdu),
|
||||
perSecond: this.perSecond,
|
||||
count: this.count
|
||||
};
|
||||
}
|
||||
|
||||
on(event: string, callback: (...args: any[]) => void): void {
|
||||
|
@@ -1,9 +1,6 @@
|
||||
import {Center} from "./Center/Center";
|
||||
import {CenterSessionManager} from "./Center/CenterSessionManager";
|
||||
import {Client} from "./Client/Client";
|
||||
import ClientSessionManager from "./Client/ClientSessionManager";
|
||||
import {HttpServer} from "./HttpServer/HttpServer";
|
||||
import {Job} from "./Job/Job";
|
||||
import Logger from "./Logger";
|
||||
import {DebugPduProcessor} from "./PDUProcessor/DebugPduProcessor";
|
||||
import {EchoPduProcessor} from "./PDUProcessor/EchoPduProcessor";
|
||||
|
Reference in New Issue
Block a user