Spacetime-Meta / spacetime-sdk

The spacetime-sdk is a turnkey virtual environment package for building in the Spacetime Metaverse
https://www.spacetimemeta.io/metaverse/spawn-planet
MIT License
11 stars 2 forks source link

Prevent double connection #139

Closed Liquid-Blocks closed 2 years ago

Liquid-Blocks commented 2 years ago

In the RemoteController, there should be a verification to prevent users from being connected twice.

  1. It should not be possible to call RemoteController.connectToPeer(peerId) on a peer we are already connected to.
  2. There should be a verification before calling RemoteController.connections.push(newConnection), to prevent doubles in the array.

Image

Image

codeeMadness commented 2 years ago

Hi @Liquid-Blocks, This issue is already resolved. correct? I have tested on the newest version. It seems fine. If ok, I will close this issue. or else, just help to tell me if we have any other issues relate to this.

Liquid-Blocks commented 2 years ago

Yes this issue seems to have been solved during the latest updates