For quite a while we have been working on increased messaging speed. We want to make chatting via ADAMANT as fast as via classic P2P-messengers. We made another huge step with the latest PWA 2.4.0 release.
Not so long ago, we have added support for socket connections to nodes and now — to PWA too. WebSockets allow instant data sharing between a node and a messaging app and notifies about new events in a way of a new message.
Moreover, with the help of web-sockets, nodes can notify about those transactions that weren’t confirmed yet. That is why users get messages instantly. At first, a message is received with a status “Delivered to a node” ✔ and then, after it is confirmed by the blockchain system, its status changes to “Saved to the blockchain” ⚭. This is how it works:
As you can see, when sent, a message changes its status from 🕔 to ✔ in a fraction of a second. This means that the recipient has already received your message. Fast, huh?
After that, this message will be verified by the blockchain system ⚭. What if a message has already been delivered but is not confirmed by the blockchain yet? When this message is being delivered it is verified by one and only node. However, the decentralized network requires this message to be verified by other nodes too — this is what guarantees those advantages of a blockchain messenger. The process of receiving a new block and checking in a message takes a few seconds.
For now, WebSockets are supported by chatting via apps with nodes employed and those nodes communicate with each other with a delay. So if two users are connected to the same node, their messages will be delivered instantly. If they are connected to different nodes, the messages will come with a few seconds’ delay. It can be checked in the “Settings” section → Nodes list:
You and your chatter should disable (remove ticks) all the nodes except one. Then your messages will be delivered instantly. We plan to add supported connections between sockets and nodes so that there will be no delays no matter which nodes your chatters use.
Here is a full list of changes and fixes for the latest 2.4.0 version:
- Resfinex Token (RES) support
- Updated Stably Dollar (USDS) name and Logo
- Adjusted Send Token menu height
- Client-Node socket connection
- New status ‘In blockchain’ for messages
- Updated Buy&Sell tokens dialog
- Added validation for BTC addresses
- Fix for paste from clipboard address validation
- Fix negative to send an amount
Apps are available for Web, Tor, Windows, Linux and Mac OS.