mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 07:07:33 +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
|
||||
const Gamedig = require('gamedig');
|
||||
Gamedig.query({
|
||||
const GameDig = require('gamedig');
|
||||
GameDig.query({
|
||||
type: 'minecraft',
|
||||
host: 'mc.example.com'
|
||||
}).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).
|
||||
To use a fixed listen udp port, construct a new Gamedig object like this:
|
||||
```
|
||||
const gamedig = new Gamedig({
|
||||
const gamedig = new GameDig({
|
||||
listenUdpPort: 13337
|
||||
});
|
||||
gamedig.query(...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue