fix(js): waitForRemotePeer is not exported from js-waku
This commit is contained in:
parent
bad1ad9e48
commit
c36b1b0c4c
|
@ -27,12 +27,14 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import {
|
||||||
waitForRemotePeer,
|
|
||||||
WakuMessage
|
WakuMessage
|
||||||
} from 'https://unpkg.com/js-waku@next/bundle/index.js';
|
} from 'https://unpkg.com/js-waku@next/bundle/index.js';
|
||||||
import {
|
import {
|
||||||
createWaku
|
createWaku
|
||||||
} from 'https://unpkg.com/js-waku@next/bundle/lib/create_waku.js'
|
} 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 statusDiv = document.getElementById('status');
|
||||||
const messagesDiv = document.getElementById('messages');
|
const messagesDiv = document.getElementById('messages');
|
||||||
|
|
|
@ -14,12 +14,14 @@
|
||||||
|
|
||||||
<script type='module'>
|
<script type='module'>
|
||||||
import {
|
import {
|
||||||
waitForRemotePeer,
|
|
||||||
Protocols
|
Protocols
|
||||||
} from 'https://unpkg.com/js-waku@next/bundle/index.js';
|
} from 'https://unpkg.com/js-waku@next/bundle/index.js';
|
||||||
import {
|
import {
|
||||||
createWaku
|
createWaku
|
||||||
} from 'https://unpkg.com/js-waku@next/bundle/lib/create_waku.js'
|
} 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
|
* This example demonstrates how to use the js-waku minified bundle
|
||||||
|
|
Loading…
Reference in New Issue