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

[feature request] Heartbeat health check #29

Open
suntong opened this issue Nov 7, 2020 · 1 comment
Open

[feature request] Heartbeat health check #29

suntong opened this issue Nov 7, 2020 · 1 comment

Comments

@suntong
Copy link

suntong commented Nov 7, 2020

It'd be great to have a heartbeat health check plugin -- 验证heartbeat

就是如何验证自己的代码是否收不到更新消息了

前几天遇到过一次,不知道为什么,一条新消息都收不到了,可事实上是错过了好多

[Huan (李卓桓)]:

看来应该发布一个插件做这个验证 heartbeat 了呢
你去发一个 issue 提一个 feature request 吧,我可以把之前的代码封装一下

@huan huan added enhancement New feature or request feature request and removed enhancement New feature or request labels Nov 7, 2020
@huan
Copy link
Member

huan commented Nov 7, 2020

There's a great method that design by me months ago, to solve this problem:

  1. Make sure your bot subscribe to the official account chatieio on WeChat
  2. Send a ding message to chatieio, which you can expect a dong response from the Official Account
  3. If you did not receive dong for more than 60 seconds, then your bot has a high probability that can not receive WeChat message anymore.

I have implemented this design in our HA Wechaty.

In order to use HAWechaty, we need to follow WeChat Official Account "chatieio" first.

See wechaty/ha#1

Todo:

  • make this code snip a plugin for our plugin-contrib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants