mirror of
https://github.com/tribufu/node-gamedig
synced 2026-06-01 09:42:41 +00:00
Additional async rewrite
This commit is contained in:
parent
efe12a00aa
commit
29ce0b82d0
24 changed files with 654 additions and 470 deletions
|
|
@ -3,7 +3,7 @@ const Core = require('./core');
|
|||
class Kspdmp extends Core {
|
||||
async run(state) {
|
||||
const body = await this.request({
|
||||
uri: 'http://'+this.options.address+':'+this.options.port_query
|
||||
uri: 'http://'+this.options.address+':'+this.options.port
|
||||
});
|
||||
|
||||
const json = JSON.parse(body);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue