-
Notifications
You must be signed in to change notification settings - Fork 11
adds socket transports option in sdk constructor #221
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
Conversation
himanshuchawla009
commented
Sep 10, 2025
- adds socket transports option in sdk constructor
| // import { tssLib } from "@toruslabs/tss-dkls-lib"; | ||
| import{ tssLib } from "@toruslabs/tss-frost-lib"; |
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.
You probably don't want to change that permanently, as some of the functions of the demo don't work with frost.
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.
ok will update.
|
|
||
| // Setup sockets. | ||
| const sockets = await setupSockets(tssWSEndpoints, randomSessionNonce); | ||
| const sockets = await setupSockets(tssWSEndpoints, randomSessionNonce, "/tss/socket.io", this.socketTransports); |
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.
Is it intentional that you set the path here? Otherwise you can also insert undefined and it will fallback to the default as before.
| { | ||
| "name": "@web3auth/mpc-core-kit", | ||
| "version": "3.4.3", | ||
| "version": "3.5.0-0", |
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.
Why -0?
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.
i did a pre-release from this branch, will do the final release once after merging to master
| data, | ||
| serverCoefficientsHex | ||
| serverCoefficientsHex, | ||
| this.socketTransports |
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.
Wasn't there another parameter here?
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.
that's on another version of tss client which is not in production yet.