20 lines
518 B
C#
20 lines
518 B
C#
using System.Threading.Tasks;
|
|
using LeanCloud.Realtime.Protocol;
|
|
|
|
namespace LeanCloud.Realtime.Internal.Controller {
|
|
internal class LCIMGoAwayController : LCIMController {
|
|
internal LCIMGoAwayController(LCIMClient client) : base(client) {
|
|
|
|
}
|
|
|
|
#region 消息处理
|
|
|
|
internal override async Task OnNotification(GenericCommand notification) {
|
|
// 清空缓存,断开连接,等待重新连接
|
|
await Connection.Reset();
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|