Open DiuDono opened 2 years ago
Hey @DiuDono.
Your local PeerJS server was probably not running (on that port/path). Does it work againt the cloud server (without host,secure,port
)?
I don’t think your setId
function will work. Ids should be a read-only property. If you need a Peer with a specific id, just .destroy()
the old one and create a new Peer(newId)
Here is the PeerJS part of my code :
setId
andactuallyConnect
are triggered by html buttons. The console outputs :What does the last line mean ? I can't connect or change peer id (setId doesn't work for some reason)