relayConnect() doesn't await on relay.connect() and just return Relay, so await on relayConnect() as the README won't work as expected (it should make sure that connection to a relay is established), I think.
I made relayConnect async function and correctly await on relay.connect().
relayConnect()
doesn'tawait
onrelay.connect()
and just returnRelay
, soawait
onrelayConnect()
as the README won't work as expected (it should make sure that connection to a relay is established), I think.I made
relayConnect
async function and correctlyawait
onrelay.connect()
.