Comments (4)
Hi @Jordan9232, a warm welcome to MineStat!
I think that exposing the ConnStatus should be possible without a problem.
What I am currently unsure of is whether that information is actually usable/useful? I haven't looked at the code for a few months, but in many cases we can't really determine a specific error cause. If the granularity Unknown
(something failed in the protocol decoding), Timeout
(connection timed out) and ConnFail
(IP unreachable, port closed, other network errors) is enough, that should suffice and be possible.
Best regards,
MindSolve
from minestat.
To explain why it's usable/useful to me, in my case if ServerUp
is false I want to display an error message to my users, but I want to use a different error message depending on ConnFail, Timeout, or Unknown. Those 3 different reasons are enough for me.
from minestat.
Progress
Variant | Connection status exposed? |
---|---|
C# | ✔️ (Merged PR #122) |
Go | ❌ |
Java | ✔️ (Merged PR #121) |
JavaScript | ❌ |
PHP | ✔️ (Merged PR #125) |
Perl | ❌ |
PowerShell | ✔️ (Merged PR #122) |
Python | ✔️ (Merged PR #135) |
Ruby | ✔️ (Merged PR #121) |
from minestat.
As with issue #120, I'll resolve this issue now that PR #122 has been merged. The Go, JavaScript, and Perl subprojects will also contain this property once they gain feature parity with the other language variants.
from minestat.
Related Issues (20)
- Feature Request - Net Core Support HOT 3
- Minestat Java reports servers as always offline (MC 1.19.2 / Java 17) HOT 12
- [Javascript] minestat.online returns True even after server is shut down HOT 6
- Python bug preventing SLP querying
- KeyError: 'motd_2' , when "-" in the IP HOT 12
- Some servers cannot query the information HOT 10
- Add support for SRV record resolution
- Add GameSpy4/UT3 query protocol support
- JSON Protocol Is Removing Whitespace In MOTD HOT 2
- Is there a Gradle version for java? HOT 2
- A question about Java and bedrock server protocols HOT 9
- Python: Port from SRV record is not used HOT 1
- PHP @ Minestat erroe on socket_recv() line 293 HOT 9
- Powershell -> PHP HOT 3
- Player Username option HOT 7
- `description` don't always exist HOT 1
- Possible runtime error when MotD is empty/null HOT 1
- KeyError `players` HOT 4
- [Ruby] `srv_suceeded` seems typo
- Nested `extra` in MOTD is not parsed correctly on `stripped_motd` HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minestat.