diff --git a/Realtime/Conversation/LCIMConversation.cs b/Realtime/Conversation/LCIMConversation.cs index 1a0c34d..f703d3d 100644 --- a/Realtime/Conversation/LCIMConversation.cs +++ b/Realtime/Conversation/LCIMConversation.cs @@ -263,6 +263,7 @@ namespace LeanCloud.Realtime { options = LCIMMessageSendOptions.Default; } await Client.MessageController.Send(Id, message, options); + LastMessage = message; return message; } diff --git a/Realtime/Internal/Connection/LCConnection.cs b/Realtime/Internal/Connection/LCConnection.cs index ab98eba..bef04cf 100644 --- a/Realtime/Internal/Connection/LCConnection.cs +++ b/Realtime/Internal/Connection/LCConnection.cs @@ -184,6 +184,7 @@ namespace LeanCloud.Realtime.Internal.Connection { } private async Task Reconnect() { + OnReconnecting?.Invoke(); while (true) { int reconnectCount = 0; // 重连策略 diff --git a/Realtime/Internal/Router/LCRTMRouter.cs b/Realtime/Internal/Router/LCRTMRouter.cs index d663b46..418ddb7 100644 --- a/Realtime/Internal/Router/LCRTMRouter.cs +++ b/Realtime/Internal/Router/LCRTMRouter.cs @@ -10,6 +10,9 @@ namespace LeanCloud.Realtime.Internal.Router { /// RTM Router /// internal class LCRTMRouter { + /// + /// 请求超时 + /// private const int REQUEST_TIMEOUT = 10000; private LCRTMServer rtmServer;