mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
update: heartbeat config
This commit is contained in:
parent
6fe43b6835
commit
256711024d
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user