Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

用户在线状态更新流程 #114

Closed
jkguo-looker opened this issue Mar 4, 2024 · 1 comment
Closed

用户在线状态更新流程 #114

jkguo-looker opened this issue Mar 4, 2024 · 1 comment

Comments

@jkguo-looker
Copy link

No description provided.

@tangtaoit
Copy link
Contributor

tangtaoit commented Mar 4, 2024

建议流程如下:

  1. 业务端通过Webhook监听到用户的在线状态后,存入或更新业务端自己的数据库。

  2. 业务端应该定时调用WuKongIM的在线状态查询接口,查询数据库里的在线用户是否真实在线(如果不做这一步,WuKongIM重启,业务端是不会收到用户Webhook的离线通知的,导致在线的用户没有离线,这时定时调用在线接口查询在线用户是否正在在线,从而矫正用户的状态)

  3. 客户端应该调用业务服务端自己的在线状态接口,接口获取自己存入数据库的用户状态数据。

@tangtaoit tangtaoit pinned this issue Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants