* LCRTMRouter.cs:
* LCConnection.cs: * LCIMConversation.cs: chore
parent
816e735968
commit
0ea13ab725
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
// 重连策略
|
// 重连策略
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue