node-webot / co-wechat

Wechat for Koa
427 stars 91 forks source link

Reply an empty string to wechat server. #6

Closed lixiaojun closed 9 years ago

lixiaojun commented 9 years ago

http://mp.weixin.qq.com/wiki/2/5baf56ce4947d35003b86a9805634b1e.html

微信服务器在五秒内收不到响应会断掉连接,并且重新发起请求,总共重试三次

关于重试的消息排重,推荐使用FromUserName + CreateTime 排重。

假如服务器无法保证在五秒内处理并回复,可以直接回复空串,微信服务器不会对此作任何处理,并且不会发起重试。

coveralls commented 9 years ago

Coverage Status

Coverage decreased (-0.38%) to 78.0% when pulling 1ebcb31bbf92ae6b46129fd872713c15d25a871d on MangroveTech:master into b547d7cf30036a5050656329eb45d0a1ce3ed05b on node-webot:master.

coveralls commented 9 years ago

Coverage Status

Coverage decreased (-0.38%) to 78.0% when pulling 503bb627bca66c9e700a76dc4ec3bbdff7da369a on MangroveTech:master into b547d7cf30036a5050656329eb45d0a1ce3ed05b on node-webot:master.

JacksonTian commented 9 years ago

Thanks.

JacksonTian commented 9 years ago
$ npm publish 
+ co-wechat@0.0.4