mirror of
https://github.com/tribufu/node-gamedig
synced 2026-06-01 09:42:41 +00:00
Update README.md to capitalize on the d in GameDig
This commit is contained in:
parent
0c32880099
commit
727d6327dd
1 changed files with 3 additions and 3 deletions
|
|
@ -16,8 +16,8 @@ npm install gamedig
|
||||||
```
|
```
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
const Gamedig = require('gamedig');
|
const GameDig = require('gamedig');
|
||||||
Gamedig.query({
|
GameDig.query({
|
||||||
type: 'minecraft',
|
type: 'minecraft',
|
||||||
host: 'mc.example.com'
|
host: 'mc.example.com'
|
||||||
}).then((state) => {
|
}).then((state) => {
|
||||||
|
|
@ -128,7 +128,7 @@ In some very rare scenarios, you may need to bind / listen on a fixed local UDP
|
||||||
some extremely strict firewalls, or within a docker container (where you only wish to forward a single UDP port).
|
some extremely strict firewalls, or within a docker container (where you only wish to forward a single UDP port).
|
||||||
To use a fixed listen udp port, construct a new Gamedig object like this:
|
To use a fixed listen udp port, construct a new Gamedig object like this:
|
||||||
```
|
```
|
||||||
const gamedig = new Gamedig({
|
const gamedig = new GameDig({
|
||||||
listenUdpPort: 13337
|
listenUdpPort: 13337
|
||||||
});
|
});
|
||||||
gamedig.query(...)
|
gamedig.query(...)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue