mirror of
https://github.com/waku-org/js-waku-examples.git
synced 2025-02-23 21:28:06 +00:00
feat(store-js): use createLightNode
This commit is contained in:
parent
8e57b8a668
commit
2d7989efca
@ -17,7 +17,7 @@
|
|||||||
Protocols
|
Protocols
|
||||||
} from 'https://unpkg.com/js-waku@0.27.0/bundle/index.js';
|
} from 'https://unpkg.com/js-waku@0.27.0/bundle/index.js';
|
||||||
import {
|
import {
|
||||||
createWaku
|
createLightNode
|
||||||
} from 'https://unpkg.com/js-waku@0.27.0/bundle/lib/create_waku.js'
|
} from 'https://unpkg.com/js-waku@0.27.0/bundle/lib/create_waku.js'
|
||||||
import {
|
import {
|
||||||
waitForRemotePeer
|
waitForRemotePeer
|
||||||
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
timestampDiv.innerHTML = '<p>Creating waku.</p>';
|
timestampDiv.innerHTML = '<p>Creating waku.</p>';
|
||||||
const node = await createWaku({ defaultBootstrap: true });
|
const node = await createLightNode({ defaultBootstrap: true });
|
||||||
|
|
||||||
timestampDiv.innerHTML = '<p>Starting waku.</p>';
|
timestampDiv.innerHTML = '<p>Starting waku.</p>';
|
||||||
await node.start();
|
await node.start();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user