Closed geocontrol closed 2 years ago
I'm having the same issue with the Peer-to-Peer-Cue-System application. I've also tried a lot of the examples and cant get it to work, the receiver seems to connect to the sender and the connection open event gets called, but it doesn't seem to be getting called for the sender. And when i output the connection from inside the connection open event of the receiver it says its not open.
I have started to look at implementing what I need to do in libp2p as it feels like there are issues with this library that I am not able to fix / work around. :-/
I've just retried and everything seems to work. The peer.min.js in Peer-to-Peer-Cue-System is an old version, updating that to the latest one worked for me.
Seems like a NAT issue
I have two simple HTML pages
index.html
and index2.html
Both connect using your peer server, but no connection is actually opened, so no data can be sent.
The use case I have is:
User A and User B both most likely on a phone, using our app. User A will show a QR Code, which User B will scan (both from within the app). This will create a p2p connection between the two apps, allowing both to send a couple of messages (its storing a I met this person and digitally signed their account' type stuff, so its recording a two way connection between the two actors, with the consent / initiating of storing triggered once the p2p connection has been made.
I tried running the https://github.com/jmcker/Peer-to-Peer-Cue-System application and it appears to show the same behaviour (i used some of the code in index2.html, trying to work out if i was triggering things too quickly).
The pages are being run in Chrome (Mac) Version 79.0.3945.117 (Official Build) (64-bit) and also Firefox (Mac) 72.0.1 (64-bit)
Any thoughts?