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)
[x] create table to store information
[x] create form to enter turn/stun server information (use web-man turn/stun created in step 2 as default)
[x] add user information to the form so the user can choose a nickname and connection id (can be auto generated)
[x] allow user to save form
[x] auto connect to the server chosen (if any) on application load
[x] Auto connect with the connection ID chosen
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
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
Decided to do this in steps
user PeerJS so we can use WebRTC to connect user to eachother => done in https://github.com/mcorten/web-man/pull/29
create a custom web-man peer js turn/stun server so we can use that as a default (https://github.com/peers/peerjs-server)
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)
allow users to connect to each other by entering the connect ID of the one you are connecting with
store users which you connected with and connect to these users automatically when the network connects