mcorten / web-man

MIT License
0 stars 0 forks source link

As a user i want to be able to sync requests with my team mates #28

Open mcorten opened 7 months ago

mcorten commented 7 months ago

Decided to do this in steps

  1. user PeerJS so we can use WebRTC to connect user to eachother => done in https://github.com/mcorten/web-man/pull/29

  2. create a custom web-man peer js turn/stun server so we can use that as a default (https://github.com/peers/peerjs-server)

    • [x] host custom peerjs turn/stun server
  3. store server information so we can use a nickname and an static conenction id (so the client is always the same ID => this is needed to identify users)

  1. allow users to connect to each other by entering the connect ID of the one you are connecting with

    • [x] make form to connect to other user by connection ID
    • [x] make the form functional so it can connect to other users
    • [x] show who is connected and who is not Result: we can connect to other users, and reconnect to them manually
  2. store users which you connected with and connect to these users automatically when the network connects

    • [x] add migration to add users to a peer server, so we can store who connected previously
    • [ ] When the current user connects to another user, store it
    • [ ] When the current user connects to another user, fetch their nickname (so we know to who we are connected
    • [ ] When someone connects to the current user, store it
    • [ ] When the application connects to the peer server, automatically connect to the users it previously connected with Result, when the current user connects with another, or another user connects with the current user we connect automatically