feat: add port and givenPortOnly flags to the simple example
This commit is contained in:
parent
b1912505f9
commit
86d9590d11
|
@ -3,7 +3,9 @@ import { GameDig } from '../lib/index.js'
|
|||
|
||||
GameDig.query({
|
||||
type: 'minecraft',
|
||||
host: 'mc.hypixel.net'
|
||||
host: 'mc.hypixel.net',
|
||||
port: 25565, // let us explicitly specify the port
|
||||
givenPortOnly: true // gamedig will try to attempt multiple ports to ensure success, disable that with this option
|
||||
}).then((state) => {
|
||||
console.log(state)
|
||||
}).catch((error) => {
|
||||
|
|
Loading…
Reference in New Issue