17 lines
512 B
C#
17 lines
512 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) {
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
internal override async Task OnNotification(GenericCommand notification) {
|
|||
|
// TODO 清空缓存,断开连接,等待重新连接
|
|||
|
Connection.Router.Reset();
|
|||
|
await Connection.Close();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|