gun icon indicating copy to clipboard operation
gun copied to clipboard

user-registration issue with multiple connections

Open davidroberthoare opened this issue 4 years ago • 0 comments

I'm experiencing an error on a fresh new setup, where I can only create new users when just one browser is connected; when a second connection is established, the new-user function doesn't work.

  • I'm using the stock code from the 'todo' interactive demo
  • hosted on an ec2 publicly accessible apache server
  • gun server running on the same machine, default port, using the stock code from the HTTP(s) example frmo this repo
  • client code is set to only connect to my peer (not the heroku ones) on https
  • when just one browser is connected, I can create new users, and add 'todos'
  • when a second browser connects, I can login with the same credentials, and data syncs both ways
  • if I refresh both browsers and try to create a new user, the process stalls, and will not complete until I disconnect one of the two browsers...

A video demo of this in action is here: https://sports1.usiku.games/guntest/gun_new_user_error.mp4

Thanks for a very cool project! David

davidroberthoare avatar Dec 31 '20 21:12 davidroberthoare