How To Test Disconnects?

So every so often I get an error when a user tries to connect to the server. I would post the exact error, but I am currently having trouble reproducing the bug. I was wondering if there is a way for me to trigger each type of disconnect so I can test code to attempt re-connection?

Comments

  • vadimvadim ✭✭✭
    All disconnects trigger the same onStateChange() callback with 'state' parameter set to LoadBalancingClient.State.Disconnected.
    So you do not need to test all disconnect types. Simply call LoadBalancingClient.disconnect().
Sign In or Register to comment.