* LCRTMRouter.cs:
* LCConnection.cs: * LCIMConversation.cs: chore
parent
816e735968
commit
0ea13ab725
|
@ -263,6 +263,7 @@ namespace LeanCloud.Realtime {
|
|||
options = LCIMMessageSendOptions.Default;
|
||||
}
|
||||
await Client.MessageController.Send(Id, message, options);
|
||||
LastMessage = message;
|
||||
return message;
|
||||
}
|
||||
|
||||
|
|
|
@ -184,6 +184,7 @@ namespace LeanCloud.Realtime.Internal.Connection {
|
|||
}
|
||||
|
||||
private async Task Reconnect() {
|
||||
OnReconnecting?.Invoke();
|
||||
while (true) {
|
||||
int reconnectCount = 0;
|
||||
// 重连策略
|
||||
|
|
|
@ -10,6 +10,9 @@ namespace LeanCloud.Realtime.Internal.Router {
|
|||
/// RTM Router
|
||||
/// </summary>
|
||||
internal class LCRTMRouter {
|
||||
/// <summary>
|
||||
/// 请求超时
|
||||
/// </summary>
|
||||
private const int REQUEST_TIMEOUT = 10000;
|
||||
|
||||
private LCRTMServer rtmServer;
|
||||
|
|
Loading…
Reference in New Issue