Fix missing model name

This commit is contained in:
Merijn Hendriks 2021-12-28 17:51:37 +01:00
parent 0ca900191d
commit 7c94d88e38

View File

@ -1,6 +1,6 @@
import { HttpServer, WsServer, IServer } from "../common/Haru.Http";
import { Json } from "../common/Haru.Utils";
import { PingNotification } from "./Haru.Eft.Models";
import { PingNotificationModel } from "./Haru.Eft.Models";
import { CachedResponseService, CachedResponseHelper, FileResponseHelper, FileService } from "./Haru.Eft.Services";
export class ServerCluster
@ -80,7 +80,7 @@ export class NotificationServer implements IServer
public constructor()
{
const message = Json.serialize(new PingNotification());
const message = Json.serialize(new PingNotificationModel());
this.httpServer = new HttpServer("localhost", 8001);
this.wsServer = new WsServer(this.httpServer, message);
}