fix(js): waitForRemotePeer is not exported from js-waku
This commit is contained in:
parent
bad1ad9e48
commit
c36b1b0c4c
|
@ -27,12 +27,14 @@
|
|||
*/
|
||||
|
||||
import {
|
||||
waitForRemotePeer,
|
||||
WakuMessage
|
||||
} 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'
|
||||
|
||||
const statusDiv = document.getElementById('status');
|
||||
const messagesDiv = document.getElementById('messages');
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue