From 8bd17a8093ca0ff34a2cda634dc693d5fcdde479 Mon Sep 17 00:00:00 2001 From: imhao183 Date: Wed, 13 May 2020 19:13:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- broker/config/wildfirechat.conf | 6 ++++-- distribution/src/main/resources/wildfirechat.conf | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/broker/config/wildfirechat.conf b/broker/config/wildfirechat.conf index 84347258..d41e3d16 100755 --- a/broker/config/wildfirechat.conf +++ b/broker/config/wildfirechat.conf @@ -55,10 +55,12 @@ token.key testim ##token的过期时间,单位为毫秒,默认为无限期。如果需要设置无限期,客户端上一定需要加上token过期的处理。token过期的处理请参考文档的常见问题 ##token.expire_time 2592000000 -##首次登录,是否接收之前的历史消息。0 不接收;1接收。 +##首次登录,是否接收之前的历史消息。 +##0 不接收历史消息,只接收5分钟以内的消息,由于服务器没有保存已经收取记录,所以如果有超过5分钟之前未收取的消息也不会收取下拉; +##1接收,会接收 message.max_queue 配置的条数的历史消息 message.roaming 0 -##是否开启拉取远程历史消息 +##是否开启拉取远程历史消息。如果为1,客户端在会话内如果本地消息读取完了,可以下拉继续加载在服务器上的该会话的消息;如果为0则不能。 message.remote_history_message 0 ##服务器为每个用户缓存的消息数量。这个值改得太大,拉取消息时间变长,另外会占用大量内存。 diff --git a/distribution/src/main/resources/wildfirechat.conf b/distribution/src/main/resources/wildfirechat.conf index 01e8670d..05b6c367 100755 --- a/distribution/src/main/resources/wildfirechat.conf +++ b/distribution/src/main/resources/wildfirechat.conf @@ -46,10 +46,12 @@ token.key testim ##token的过期时间,单位为毫秒,默认为无限期。如果需要设置无限期,客户端上一定需要加上token过期的处理。token过期的处理请参考文档的常见问题 ##token.expire_time 2592000000 -##首次登录,是否接收之前的历史消息。0 不接收;1接收。 +##首次登录,是否接收之前的历史消息。 +##0 不接收历史消息,只接收5分钟以内的消息,由于服务器没有保存已经收取记录,所以如果有超过5分钟之前未收取的消息也不会收取下拉; +##1接收,会接收 message.max_queue 配置的条数的历史消息 message.roaming 0 -##是否开启拉取远程历史消息 +##是否开启拉取远程历史消息。如果为1,客户端在会话内如果本地消息读取完了,可以下拉继续加载在服务器上的该会话的消息;如果为0则不能。 message.remote_history_message 0 ##服务器为每个用户缓存的消息数量。这个值改得太大,拉取消息时间变长,另外会占用大量内存。