update: heartbeat config

This commit is contained in:
Wesley F. Young 2024-09-05 22:27:05 +08:00
parent 6fe43b6835
commit 256711024d

View File

@ -17,12 +17,12 @@ export class LaanaWsServerAdapter implements ILaanaNetworkAdapter {
constructor( constructor(
public ip: string, public ip: string,
public port: number, public port: number,
public enableHeartbeat: boolean,
public heartbeatInterval: number, public heartbeatInterval: number,
public token: string, public token: string,
public core: NapCatCore, public core: NapCatCore,
public laana: NapCatLaanaAdapter, public laana: NapCatLaanaAdapter,
) { ) {
this.heartbeatInterval = heartbeatInterval;
this.wsServer = new WebSocketServer({ this.wsServer = new WebSocketServer({
port: port, port: port,
host: ip, host: ip,