How to simulate multiple users for testing purposes

Hello everyone,

we are currently working on the implementation of Vivox and have seen the limit of 200 users per channel in the documentation. We would like to handle the case, where a 201st user tries to connect to a channel, properly. But in order to test this, we need 200+ connected users.

Is there any way to simulate multiple users for testing purposes?
If we try to initialize and login a second user on the same machine, we get the “MaxConnectionLimitReached” error.

Any help or hint would be much appreciated.
I could not find any answer, neither in this from nor in the FAQ or Vivox documentation.

Many thanks in advance!
Christian

I would try adding this VivoxConfig setting when you initialize Vivox to allow more logins.

public static VivoxUnity.Client Client { get; set; } = new Client();
 
    private async void Awake()

VivoxConfig vivoxConfig = new VivoxConfig();
        vivoxConfig.MaxLoginsPerUser = 201;
Client.Initialize(vivoxConfig);

        DontDestroyOnLoad(this);
    }

From your description it also sounds like you are initializing multiple instances of the VivoxUntiy.Client. You only need 1 per game/app instance. To login in a different user just call the login method again with a different username

I just tried logging in 201 users into the same channel on the same machine and Unity froze up but after exiting playmode and checking the debug log statements It looks like most if not all users connected. I did get this error after I exited Unity Play Mode so I assume it threw this error because of the extra user not sure tho, would definitely test 100 or less per machine and see if you get better results.

VivoxStro::StroConnection::StanzaNew(579)Assertion Failure - ‘m_xmppCtx != NULL’
UnityEngine.Debug:LogError (object)
VivoxUnity.VivoxDebug:smile:ebugMessage (object,vx_log_level) (at Assets/Vivox/Runtime/VivoxUnity/VivoxDebug.cs:103)
VivoxCoreInstancePINVOKE/SWIGLogHelper:Vx_Log_Event (vx_log_level,string,string) (at Assets/Vivox/Runtime/VivoxUnity/generated_files/VivoxCoreInstancePINVOKE.cs:9785)

1 Like

Awesome, thanks for your help. Works like a charm. :slight_smile:

1 Like