备注:
预备环境docker xmpp client
1. 启动mongooseim
docker run -d -t -h mongooseim-1 --name mongooseim-1 -p 5222:5222 mongooseim/mongooseim:latest
2. 添加测试账户
docker exec -i -t mongooseim-1 /usr/lib/mongooseim/bin/mongooseimctl register $USER $XMPP_HOST $PASSWORD
比如,我创建了两个账户:
docker exec -i -t mongooseim-1 /usr/lib/mongooseim/bin/mongooseimctl register dalong localhost dalong
docker exec -i -t mongooseim-1 /usr/lib/mongooseim/bin/mongooseimctl register demo localhost demo
备注:
$USER - a username
$XMPP_HOST - the XMPP host served by MongooseIM - by default it's localhost
$PASSWORD - password used for authentication
3. 下载xmpp client 测试
参考下载地址:
https://xmpp.org/software/clients.html
我下载了 spark 以及swift
如下图,具体的操作就就比较简单,主要是登陆的时候对于证书认证的配置取消,参考下图:
注意:需要取消证书认证的登陆模式
spark 如下:
swift 如下:
4. mongooseim组件&&常见部署模式
5. 参考资料
https://mongooseim.readthedocs.io/en/latest/
https://xmpp.org/software/clients.html