mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-19 02:00:38 +01:00
README improvements (2.0.4)
This commit is contained in:
parent
5f0c9c61ee
commit
d5dc3172b1
2 changed files with 17 additions and 4 deletions
19
README.md
19
README.md
|
@ -58,9 +58,19 @@ The returned state object will contain the following keys:
|
|||
* The number of players online can be determined by `players.length`.
|
||||
* For servers which do not provide player names, this may be an array
|
||||
of empty objects (ex. `[{},{},{}]`), one for each player without a name.
|
||||
* **bots**: array of objects - Same schema as players
|
||||
* **raw**: freeform object - Contains all information received from the server in a disorganized format. The content of this
|
||||
field is unstable, and may change on a per-protocol basis between GameDig patch releases (although not typical).
|
||||
* **bots**: array of objects - Same schema as `players`
|
||||
* **connect**: string
|
||||
* This will typically include the game's `ip:port`
|
||||
* The port will reflect the server's game port, even if your request specified the game's query port in the request.
|
||||
* For some games, this may be a server ID or connection url if an IP:Port is not appropriate for end-users.
|
||||
* **ping**: number
|
||||
* Round trip time to the server (in milliseconds).
|
||||
* Note that this is not the RTT of an ICMP echo, as ICMP packets are often blocked by NATs and node
|
||||
has poor support for raw sockets.
|
||||
* This value is derived from the RTT of one of the query packets, which is usually quite accurate, but may add a bit due to server lag.
|
||||
* **raw**: freeform object (unstable)
|
||||
* Contains all information received from the server in a disorganized format.
|
||||
* The content of this field MAY change on a per-protocol basis between GameDig patch releases (although not typical).
|
||||
|
||||
Games List
|
||||
---
|
||||
|
@ -418,6 +428,9 @@ as well: `--debug`, `--pretty`, `--socketTimeout 5000`, etc.
|
|||
Changelog
|
||||
---
|
||||
|
||||
### 2.0.4
|
||||
* Added details about new 2.0 reponse fields to the README.
|
||||
|
||||
### 2.0.3
|
||||
* Added support for Insurgency: Sandstorm
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
],
|
||||
"main": "lib/index.js",
|
||||
"author": "Michael Morrison",
|
||||
"version": "2.0.3",
|
||||
"version": "2.0.4",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sonicsnes/node-gamedig.git"
|
||||
|
|
Loading…
Reference in a new issue