Skip to content

Commit

Permalink
socket error
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsantosbh committed Apr 17, 2024
1 parent dda80a4 commit 2ee9293
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/full.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 3 additions & 0 deletions views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@
<button id="btnDisconnect" class="btn btn-danger d-none" onclick="simulate_no_packets()">
No Packets Received
</button>
<button id="btnDisconnect" class="btn btn-danger d-none" onclick="simulate_socket_error()">
Socket Error
</button>
</div>

<div class="text-center mt-3 text-muted">
Expand Down

0 comments on commit 2ee9293

Please sign in to comment.