Added client title counter in example
This commit is contained in:
@@ -9,7 +9,10 @@ namespace EonaCat.Connections.Client.Example
|
||||
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
CreateClientAsync().ConfigureAwait(false);
|
||||
for (int i = 0; i < 100000; i++)
|
||||
{
|
||||
CreateClientAsync(i).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
while (true)
|
||||
{
|
||||
@@ -28,7 +31,7 @@ namespace EonaCat.Connections.Client.Example
|
||||
}
|
||||
}
|
||||
|
||||
private static async Task CreateClientAsync()
|
||||
private static async Task CreateClientAsync(int i)
|
||||
{
|
||||
var config = new Configuration
|
||||
{
|
||||
@@ -55,7 +58,7 @@ namespace EonaCat.Connections.Client.Example
|
||||
await _client.ConnectAsync();
|
||||
|
||||
// Send nickname
|
||||
await _client.SendNicknameAsync("TestUser");
|
||||
await _client.SendNicknameAsync($"TestUser{i}");
|
||||
|
||||
// Send a message
|
||||
await _client.SendAsync("Hello server!");
|
||||
|
Reference in New Issue
Block a user