This commit is contained in:
Jeroen
2023-11-18 12:19:53 +01:00
parent 08a2be3221
commit 2dca7a7f4f
73 changed files with 851 additions and 799 deletions

View File

@@ -66,8 +66,7 @@ internal class Program
StartServer(serverUri, certificatePath, certificatePassword, requiredPassword);
// Start the client in the main thread
_client = new WSClient(clientUri);
_client.SSL.Certificates.Add(new X509Certificate(certificatePath, certificatePassword));
_client = new WSClient(clientUri, new X509Certificate(certificatePath, certificatePassword));
_client.OnConnect += (sender, e) => Console.WriteLine($"Connected to server");
_client.OnMessageReceived += (sender, e) => Console.WriteLine($"Received message from server: {e.Data}");
_client.OnDisconnect += (sender, e) => Console.WriteLine($"Disconnected from server: {e.Code} : {e.Reason}");