Skip to content

Commit 0d512c1

Browse files
authored
Merge pull request #1728 from multiversx/development
5.6.21
2 parents 5d34060 + fcc3d24 commit 0d512c1

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [[5.6.21](https://github.com/multiversx/mx-sdk-dapp/pull/1728)] - 2026-03-11
11+
12+
- [Use websocket transport as default on websocket init](https://github.com/multiversx/mx-sdk-dapp/pull/1727)
13+
1014
## [[5.6.20](https://github.com/multiversx/mx-sdk-dapp/pull/1726)] - 2026-03-10
1115

1216
- [Added missing option to skip guardian checks in signTransactions function](https://github.com/multiversx/mx-sdk-dapp/pull/1726)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@multiversx/sdk-dapp",
3-
"version": "5.6.20",
3+
"version": "5.6.21",
44
"description": "A library to hold the main logic for a dapp on the MultiversX blockchain",
55
"author": "MultiversX",
66
"license": "MIT",

src/methods/initApp/websocket/initializeWebsocketConnection.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ export async function initializeWebsocketConnection(address: string) {
106106
reconnectionAttempts: RECONNECTION_ATTEMPTS,
107107
reconnectionDelay: RETRY_INTERVAL,
108108
timeout: TIMEOUT,
109-
query: { address }
109+
query: { address },
110+
transports: ['websocket']
110111
});
111112

112113
websocketConnection.instance.onAny(handleMessageReceived);

src/methods/initApp/websocket/tests/initializeWebsocketConnection.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ describe('initializeWebsocketConnection tests', () => {
7373
reconnectionAttempts: 3,
7474
reconnectionDelay: 500,
7575
timeout: 3000,
76-
query: { address: account.address }
76+
query: { address: account.address },
77+
transports: ['websocket']
7778
});
7879
expect(mockSocketInstance.onAny).toHaveBeenCalled();
7980
expect(mockSocketInstance.on).toHaveBeenCalledTimes(4);

0 commit comments

Comments
 (0)