* Added gid and uid to websocket (mg_connection)
Note: gid = group ID, uid = unique ID.
* Replaced old ws msg processing functions with new ones
* System functions:
- sys_display: Displays in console/terminal
- sys_unicast: unicast message to respective ws
- sys_broadcast: broadcast message to all ws
* Supernode to Users:
- broadcast: Sends msg to all ws
- groupcast: Sends msg to ws of affilated group
- unicast: Sends msg to respective ws
*User to Supernode:
- forward: Forwards msg from user to supernode ws
- Added migration feature when nodes are added or removed.
- Updated stdop
- Optimisation done for floSupernode module.
- Converted reactor events to respective functions for optimisation.
- fixed minor bugs.
Adding Sharmirs Secret functions
Store and retrive the private key and server password securely
A dump credential for each credential will be stored to improve security
clearCredentials(): clear the stored credentials
Supernode automatically deletes messages that are not sent by subAdmins of an application and applications that are not associated.
The delete occurs every one hour, the messages are stored for a configurable time (deleteDelay) before deleted
Limiting the rotation while connecting to backup nodes. i.e, not enough supernodes available.
Handling the above exception in backup_node_offline event
Added the indications and processes when a noded comes back online:
Connect to the backup nodes
Inform the backup nodes that node is revived
Serving node transfers the serve list to revived node
Storing nodes informs their farest stored backup to connect to revived node
Added the indications and processes when a noded goes offline:
The previous nodes that the dead was serving ll connect to a next available node
The immediate prev node informs the immediate next node to start serving the dead
Added following features:
inidicate the next node when a sn is down
inidicate the next node when a sn is up
request backuped data when a sn comes back online