Merge pull request #25 from jhalitaksoy/fix/ws-ping-time

set PING_INTERVAL 15000
This commit is contained in:
Halit Aksoy 2022-07-17 22:23:47 +03:00 committed by GitHub
commit 83a41dec94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ import { Bytes, OnMessage, RTMT } from "./rtmt";
import { server } from "../service/http_service"; import { server } from "../service/http_service";
import { channel_ping, channel_pong } from "../const/channel_names"; import { channel_ping, channel_pong } from "../const/channel_names";
const PING_INTERVAL = 3000, PING_INTERVAL_BUFFER_TIME = 500; const PING_INTERVAL = 15000, PING_INTERVAL_BUFFER_TIME = 1000;
export class RTMTWS implements RTMT { export class RTMTWS implements RTMT {
private messageChannels: Map<String, OnMessage>; private messageChannels: Map<String, OnMessage>;