mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-04-25 16:22:24 +00:00
Update JS Client to use new API
This commit is contained in:
parent
51254d14fe
commit
97accb04ca
@ -81,12 +81,11 @@ async function start() {
|
|||||||
selfPeerId = cl.getPeerId()
|
selfPeerId = cl.getPeerId()
|
||||||
console.log("CONNECTED")
|
console.log("CONNECTED")
|
||||||
|
|
||||||
peer2 = await createClient()
|
|
||||||
console.log("CONNECTING TO SECOND:")
|
console.log("CONNECTING TO SECOND:")
|
||||||
peer2.onConnectionStateChange((s) => {
|
peer2 = await createClient(relay2);
|
||||||
|
peer2.onConnectionStateChange((s) => {
|
||||||
console.log(s)
|
console.log(s)
|
||||||
})
|
})
|
||||||
await peer2.connect(relay2)
|
|
||||||
console.log("CONNECTED")
|
console.log("CONNECTED")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user