Reconnect policy for tcp client.

This commit is contained in:
Alexandru Macocian
2021-03-02 17:14:35 +01:00
parent 106f244500
commit 8ad0b27029
5 changed files with 160 additions and 79 deletions
+3 -1
View File
@@ -1,5 +1,6 @@
using MTSC.Client;
using MTSC.Client.Handlers;
using MTSC.ClientSide;
using MTSC.Common.WebSockets.ClientModules;
using MTSC.Logging;
using System;
@@ -15,7 +16,8 @@ namespace MTSC_TestClient
ChatModule chatModule = new ChatModule();
client
.SetServerAddress("127.0.0.1")
.SetPort(80)
.SetPort(800)
.WithReconnectPolicy(ReconnectPolicy.Forever)
.AddHandler(websocketHandler.AddModule(chatModule))
//.AddHandler(new EncryptionHandler())
//.AddHandler(new BroadcastHandler())