decrease RTMT_WS_PING_INTERVAL
This commit is contained in:
parent
3af7da905d
commit
49ae3fa9ec
1
src/consts/config.ts
Normal file
1
src/consts/config.ts
Normal file
@ -0,0 +1 @@
|
||||
export const RTMT_WS_PING_INTERVAL = 1000;
|
||||
@ -4,8 +4,7 @@ import { Bytes, OnClientConnectionChange, OnMessage, RTMT } from "./rtmt"
|
||||
import WebSocket from "ws"
|
||||
import * as http from 'http';
|
||||
import { channel_ping, channel_pong } from "../consts/channel_names";
|
||||
|
||||
const PING_INTERVAL = 15000;
|
||||
import { RTMT_WS_PING_INTERVAL } from "../consts/config";
|
||||
|
||||
export class RTMTWS implements RTMT {
|
||||
|
||||
@ -115,7 +114,7 @@ export class RTMTWS implements RTMT {
|
||||
ws.isAlive = false;
|
||||
sendMessageInternal(ws, channel_ping, {});
|
||||
});
|
||||
}, PING_INTERVAL);
|
||||
}, RTMT_WS_PING_INTERVAL);
|
||||
}
|
||||
|
||||
stopPingInterval() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user