detect pong for unified ws

This commit is contained in:
tiagosiebler
2022-09-17 11:13:48 +01:00
parent 08674ab2fa
commit 34884b236f
4 changed files with 20 additions and 7 deletions

View File

@@ -73,6 +73,10 @@ export function isWsPong(msg: any): boolean {
return true;
}
if (msg['ret_msg'] === 'pong') {
return true;
}
return (
msg.request &&
msg.request.op === 'ping' &&