* LCRTMRouter.cs:

* LCConnection.cs:

* LCIMConversation.cs: chore
oneRain 2020-04-23 09:52:32 +08:00
parent 816e735968
commit 0ea13ab725
3 changed files with 5 additions and 0 deletions

View File

@ -263,6 +263,7 @@ namespace LeanCloud.Realtime {
options = LCIMMessageSendOptions.Default; options = LCIMMessageSendOptions.Default;
} }
await Client.MessageController.Send(Id, message, options); await Client.MessageController.Send(Id, message, options);
LastMessage = message;
return message; return message;
} }

View File

@ -184,6 +184,7 @@ namespace LeanCloud.Realtime.Internal.Connection {
} }
private async Task Reconnect() { private async Task Reconnect() {
OnReconnecting?.Invoke();
while (true) { while (true) {
int reconnectCount = 0; int reconnectCount = 0;
// 重连策略 // 重连策略

View File

@ -10,6 +10,9 @@ namespace LeanCloud.Realtime.Internal.Router {
/// RTM Router /// RTM Router
/// </summary> /// </summary>
internal class LCRTMRouter { internal class LCRTMRouter {
/// <summary>
/// 请求超时
/// </summary>
private const int REQUEST_TIMEOUT = 10000; private const int REQUEST_TIMEOUT = 10000;
private LCRTMServer rtmServer; private LCRTMServer rtmServer;