-
Notifications
You must be signed in to change notification settings - Fork 79
Websocket Default Transport #1727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b4f8039
a4990d0
f4283c3
6204f84
aa72b2b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -106,7 +106,8 @@ export async function initializeWebsocketConnection(address: string) { | |
| reconnectionAttempts: RECONNECTION_ATTEMPTS, | ||
| reconnectionDelay: RETRY_INTERVAL, | ||
| timeout: TIMEOUT, | ||
| query: { address } | ||
| query: { address }, | ||
| transports: ['websocket'] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While this change correctly forces the websocket transport, the corresponding unit test in For example, the test could be updated as follows: // in src/methods/initApp/websocket/tests/initializeWebsocketConnection.test.ts
expect(io).toHaveBeenCalledWith(websocketUrl, {
forceNew: true,
reconnection: true,
reconnectionAttempts: 3,
reconnectionDelay: 500,
timeout: 3000,
query: { address: account.address },
transports: ['websocket']
}); |
||
| }); | ||
|
|
||
| websocketConnection.instance.onAny(handleMessageReceived); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pull request link for version
[5.6.21]appears to be incorrect. It points to pull request #1728, but the change described below is from pull request #1727. To maintain consistency and correct traceability, the version link should also point to #1727.