Skip to content

Commit

Permalink
fix(client): issues with reconnecting after a disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoBechtel committed Jul 13, 2023
1 parent 0fca516 commit de37704
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const createWebsocketClient = ({

// close previous connection if it exists
if ((await socket)?.readyState === WebSocket.OPEN) {
disconnect();
await disconnect();
}

socket = new Promise((resolve) => {
Expand Down

0 comments on commit de37704

Please sign in to comment.