fix(js): waitForRemotePeer is not exported from js-waku

This commit is contained in:
fryorcraken.eth 2022-09-05 15:30:26 +10:00
parent bad1ad9e48
commit c36b1b0c4c
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
2 changed files with 7 additions and 3 deletions

View File

@ -27,12 +27,14 @@
*/
import {
waitForRemotePeer,
WakuMessage
} from 'https://unpkg.com/js-waku@next/bundle/index.js';
import {
createWaku
createWaku
} from 'https://unpkg.com/js-waku@next/bundle/lib/create_waku.js'
import {
waitForRemotePeer
} from 'https://unpkg.com/js-waku@next/bundle/lib/wait_for_remote_peer.js'
const statusDiv = document.getElementById('status');
const messagesDiv = document.getElementById('messages');

View File

@ -14,12 +14,14 @@
<script type='module'>
import {
waitForRemotePeer,
Protocols
} from 'https://unpkg.com/js-waku@next/bundle/index.js';
import {
createWaku
} from 'https://unpkg.com/js-waku@next/bundle/lib/create_waku.js'
import {
waitForRemotePeer
} from 'https://unpkg.com/js-waku@next/bundle/lib/wait_for_remote_peer.js'
/**
* This example demonstrates how to use the js-waku minified bundle