Added rooms

This commit is contained in:
2025-08-27 20:13:23 +02:00
parent 06471a7674
commit 9eeabb9f24
9 changed files with 535 additions and 101 deletions

View File

@@ -44,10 +44,10 @@ namespace EonaCat.Connections.Client.Example
Protocol = ProtocolType.TCP,
Host = "127.0.0.1",
Port = 1111,
UseSsl = false,
UseSsl = true,
UseAesEncryption = true,
AesPassword = "EonaCat.Connections.Password",
//Certificate = new System.Security.Cryptography.X509Certificates.X509Certificate2("client.pfx", "p@ss"),
Certificate = new System.Security.Cryptography.X509Certificates.X509Certificate2("client.pfx", "p@ss"),
};
_client = new NetworkClient(config);
@@ -60,8 +60,8 @@ namespace EonaCat.Connections.Client.Example
{
Console.WriteLine($"Connected to server at {e.RemoteEndPoint}");
// Send nickname
await _client.SendNicknameAsync("TestUser");
// Set nickname
await _client.SetNicknameAsync("TestUser");
// Send a message
await _client.SendAsync("Hello server!");