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

如果客户端没上线,如何接收消息? #2

Open
SuperSnowYao opened this issue Jul 19, 2019 · 2 comments
Open

如果客户端没上线,如何接收消息? #2

SuperSnowYao opened this issue Jul 19, 2019 · 2 comments

Comments

@SuperSnowYao
Copy link

如果运营端向客户端(1、2、3)发消息,如果有的客户端3当时没有登录,等客户端3登录后如何也能获取消息提醒呢?

@yangzhongke
Copy link
Owner

发送消息的同时在数据库中存一份,作为历史消息。客户端上线的时候从数据库中查询获取历史消息

@SuperSnowYao
Copy link
Author

发送消息的同时在数据库中存一份,作为历史消息。客户端上线的时候从数据库中查询获取历史消息

嗯,多谢,明白了。其实离线再上线这段时间,如果有消息,那就获取相应状态的业务数据就行了。我把问题想复杂了。

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