Merge pull request #24 from jhalitaksoy/fix/reconnect-issue

fix: reconnect issue
This commit is contained in:
Halit Aksoy 2022-07-17 11:36:33 +03:00 committed by GitHub
commit bff7677206
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,6 @@ export class RTMTWS implements RTMT {
// sends out pings plus a conservative assumption of the latency.
this.pingTimeout = setTimeout(() => {
this.ws.close();
this.ws.onclose?.(new CloseEvent("CONNECTION_LOST"));
}, PING_INTERVAL + PING_INTERVAL_BUFFER_TIME);
}