Skip to content

Commit

Permalink
use the native websocket provided by @polkadot/rpc-provider
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Oct 29, 2024
1 parent d4a2349 commit 3aef922
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions store/incognitee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ export const useIncognitee = defineStore("incognitee", {
"Initializing Incognitee Api at " + url + " for shard " + shard,
);
this.shard = shard;
const worker = new IntegriteeWorker(url, {
createWebSocket: (url) => new WebSocket(url),
types: {},
});
const worker = new IntegriteeWorker(url);
this.api = worker;
const sk = await worker.getShardVault();
this.vault = encodeAddress(sk[0]);
Expand Down

0 comments on commit 3aef922

Please sign in to comment.