Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add connect timeout #203

Merged
merged 3 commits into from
Dec 2, 2023
Merged

Add connect timeout #203

merged 3 commits into from
Dec 2, 2023

Conversation

OmniTroid
Copy link
Contributor

If the server is not reachable from client.ts, the current default timeout is very long. I think it's fair to assume that if the client hasn't managed to connect within 5 seconds, it's a lost cause. This change also adds a clientState enum, which might be helpful to make good decisions based on which state the client is in.

It's very useful to know the state of client, whether it's
connected or properly joined.
@stonedDiscord stonedDiscord merged commit 8aa28d0 into AttorneyOnline:master Dec 2, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants