Skip to content

Commit efef160

Browse files
adds socket transports option in sdk constructor
1 parent cb155e7 commit efef160

File tree

6 files changed

+1770
-2926
lines changed

6 files changed

+1770
-2926
lines changed

demo/redirect-flow-example/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/redirect-flow-example/src/App.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import { CHAIN_NAMESPACES, CustomChainConfig, IProvider } from "@web3auth/base";
1818
import { EthereumSigningProvider } from "@web3auth/ethereum-mpc-provider";
1919
import { BN } from "bn.js";
2020
import { KeyType, Point } from "@tkey/common-types";
21-
import { tssLib } from "@toruslabs/tss-dkls-lib";
22-
// import{ tssLib } from "@toruslabs/tss-frost-lib";
21+
// import { tssLib } from "@toruslabs/tss-dkls-lib";
22+
import{ tssLib } from "@toruslabs/tss-frost-lib";
2323

2424
import "./App.css";
2525
import jwt, { Algorithm } from "jsonwebtoken";
@@ -55,6 +55,7 @@ const coreKitInstance = new Web3AuthMPCCoreKit({
5555
// sessionTime: 3600, // <== can provide variable session time based on user subscribed plan
5656
tssLib,
5757
useDKG: false,
58+
socketTransports: ["websocket", "polling"],
5859
});
5960

6061
const privateKey = "MEECAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQcEJzAlAgEBBCCD7oLrcKae+jVZPGx52Cb/lKhdKxpXjl9eGNa1MlY57A==";

0 commit comments

Comments
 (0)