Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abrzezinski94 committed Jan 16, 2024
1 parent 3fab563 commit cd6f14a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,8 @@ const confirmWithWebSockets = (
//broken rpc we check if websockets are working
const websocket = new Websocket(connection.rpcEndpoint.replace(/^http(s?):\/\//, 'ws$1://'));

websocket.onerror = function error(err) {
websocket.onerror = function error() {
websocket.close();
reject(err.message);
};
websocket.onopen = async () => {
websocket.close();
Expand Down

0 comments on commit cd6f14a

Please sign in to comment.