一、matrix资源及介绍


1.介绍

官网: https://matrix.org/docs/projects/try-matrix-now.html
套用官网的说法:Matrix is an ecosystem for open and interoperable communication. Matrix是一个开源的生态系统,其实就是IM聊天系统。分为服务端和客户端

2. 客户端

客户端有很多种:web客户端 Riot, android的实现 Riot-android, 还有ios, 命令行的等等。
riot-android 的github地址: https://github.com/vector-im/riot-android
riot-android只是界面,真正发消息等核心操作位于 vector->libs-> matrix-sdk.aar 该aar的源码怎么获取呢? build_matrix_sdk_lib.sh 有这么一行:
git clone -b ${branch} https://github.com/matrix-org/matrix-android-sdk
故得到 matrix-sdk 的源码: https://github.com/matrix-org/matrix-android-sdk

3. 服务端

服务端有以下几个重要组成:
主服务器:synapse
数据库:postgresql
第三方用户应用插件:mxisd
密码验证插件:auth_rest_provider

源码包括相关文档可以通过github获取到
synapse:https://github.com/matrix-org/synapse
mxisd:https://github.com/kamax-matrix/mxisd
auth_rest_provider:https://github.com/kamax-matrix/matrix-synapse-rest-auth

4. android客户端叫: Riot-android, 在编译好的apk上发现基本很难注册成功,主要卡在最后一步:图形校验码验证,这一步需要翻墙。最后发现在电脑端也可以注册。地址是:

https://riot.im/app/#/register PC上开好VPN能翻墙就可以轻松注册成功了。