Skip to content

Channel management both serverside and frontside

Antoine Estienne requested to merge antoinedev into master
  • a new tab-component to manage different channels within one browser-tap
  • using socket.io for channel management ( + new login flow)

The login flow is : -connect the socket and wait for connection confirmation on both sides -send signature from Welcome page to the server -server associates the socket connection with the address and sends confirmation to client -client authenticates into a room by sending a request to server -server checks the blockchain to verify authorization, if yes associates the room with the socket (the socket “joins” the room) -client receives confirmation -when a client post into a room, the server verifies that said socket is in said room, when a message is posted in a room, it is only sent to sockets in said room

Channels: -app has a hardcoded list of channels (address) -connected channels are in the main state of the App -fontColor and backgroundColor of tabs in the UI reflect the state of a channel: if (status=="locked"){ return "red" } else if (status=="waiting"){ return "yellow" } else if (status=="loggedIn"){ return "green" } else { return "purple" }

Edited by Antoine Estienne

Merge request reports