Implementation of Dew-Inspired Matrix-Mesh Communication Protocol
摘要
Matrix-Mesh is an IM protocol that proposes a hybrid messaging architecture, combining elements from cloud-dew, client-server, and P2P, with the aim of operating even when normal connectivity is not available. Matrix-Mesh was built on top of the Matrix protocol in order to make full use of its existing network and features while additionally making use of auxiliary links such as LANs, PANs (Bluetooth), and NFC connections. The app detailed herein does this, with the primary intent of proving the deployability of Matrix-Mesh on mobile platforms. While a cross-platform implementation was chosen, for expediency the primary focus is on Android, though Matrix-Mesh and all relevant discussion is applicable to other platforms, such as iOS. Through this development, it is shown that Matrix-Mesh makes the proper use of Matrix’s layered architecture, and the additional auxiliary link to provide vital communication when the primary connection is unavailable. The code is available via GitHub.