mirror of
https://github.com/tribufu/node-gamedig
synced 2026-06-01 09:42:41 +00:00
chore: rename maxAttempts option to maxRetries (#485)
* chore: rename maxAttempts to maxRetries * fix: typo
This commit is contained in:
parent
b48a4398cd
commit
6746442254
3 changed files with 5 additions and 4 deletions
|
|
@ -41,7 +41,7 @@ Confused on how this works, or you want to see more? Checkout the [examples](/ex
|
|||
|:---------------------------|:--------|:----------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **address** | string | undefined | Override the IP address of the server skipping DNS resolution. When set, host will not be resolved, instead address will be connected to. However, some protocols still use host for other reasons e.g. as part of the query. |
|
||||
| **port** | number | Game port | Connection port or query port for the game server. Some games utilize a separate "query" port. If specifying the game port does not seem to work as expected, passing in this query port may work instead. |
|
||||
| **maxAttempts** | number | 1 | Number of attempts to query server in case of failure. |
|
||||
| **maxRetries** | number | 1 | Number of retries to query server in case of failure. Note that this amount multiplies with the number of attempts. |
|
||||
| **socketTimeout** | number | 2000 | Milliseconds to wait for a single packet. Beware that increasing this will cause many queries to take longer even if the server is online. |
|
||||
| **attemptTimeout** | number | 10000 | Milliseconds allowed for an entire query attempt. This timeout is not commonly hit, as the socketTimeout typically fires first. |
|
||||
| **givenPortOnly** | boolean | false | Only attempt to query server on given port. It will ignore the game's default port. |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue