2020-03-25 16:42:30 +08:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using LeanCloud.Realtime.Protocol;
|
|
|
|
|
|
|
|
|
|
namespace LeanCloud.Realtime.Internal.Controller {
|
|
|
|
|
internal class LCIMGoAwayController : LCIMController {
|
|
|
|
|
internal LCIMGoAwayController(LCIMClient client) : base(client) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-27 15:52:34 +08:00
|
|
|
|
#region 消息处理
|
|
|
|
|
|
2020-03-25 16:42:30 +08:00
|
|
|
|
internal override async Task OnNotification(GenericCommand notification) {
|
2020-03-26 16:08:35 +08:00
|
|
|
|
// 清空缓存,断开连接,等待重新连接
|
2020-04-13 17:29:55 +08:00
|
|
|
|
await Connection.Reset();
|
2020-03-25 16:42:30 +08:00
|
|
|
|
}
|
2020-03-27 15:52:34 +08:00
|
|
|
|
|
|
|
|
|
#endregion
|
2020-03-25 16:42:30 +08:00
|
|
|
|
}
|
|
|
|
|
}
|