From dda80a4692439c16addfd473ddaa9491080aab70 Mon Sep 17 00:00:00 2001 From: Joao Santos Date: Wed, 10 Apr 2024 18:10:03 +0000 Subject: [PATCH 1/2] simulate no packets --- public/full.js | 10 ++++++++++ views/index.ejs | 3 +++ 2 files changed, 13 insertions(+) diff --git a/public/full.js b/public/full.js index 7bae521..78b40c6 100644 --- a/public/full.js +++ b/public/full.js @@ -596,6 +596,16 @@ window.answer = async () => { updateUIConnected() } +/** + * Dev Only + */ + +window.simulate_no_packets = () => { + window.__call._closeWSConnection(); +} + +window. + window.reject = async () => { await window.__invite.reject() restoreUI() diff --git a/views/index.ejs b/views/index.ejs index 53c5de2..36be1c0 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -106,6 +106,9 @@ +
From 2ee92938c0afec017d53f07a7f5fd4038c894e8d Mon Sep 17 00:00:00 2001 From: Joao Santos Date: Wed, 17 Apr 2024 10:12:04 +0000 Subject: [PATCH 2/2] socket error --- public/full.js | 4 +++- views/index.ejs | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/public/full.js b/public/full.js index 78b40c6..dc42068 100644 --- a/public/full.js +++ b/public/full.js @@ -604,7 +604,9 @@ window.simulate_no_packets = () => { window.__call._closeWSConnection(); } -window. +window.simulate_socket_error = () => { + window.__client.__wsClient.wsClient.store.dispatch({type: "session.forceClose"}) +} window.reject = async () => { await window.__invite.reject() diff --git a/views/index.ejs b/views/index.ejs index 36be1c0..ea6fcbb 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -109,6 +109,9 @@ +