https://github.com/connormcf/node-valvegamemaster
https://github.com/connormcf/node-valvegamemaster
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/connormcf/node-valvegamemaster
- Owner: ConnorMcF
- Created: 2018-03-28T16:00:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-28T16:08:17.000Z (about 7 years ago)
- Last Synced: 2024-12-27T12:08:06.397Z (6 months ago)
- Language: JavaScript
- Homepage: HomePage
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# valvegamemaster
> Fetch Source server listings.
This library is incomplete.
## Usage
```
const ValveGameMaster = require('valvegamemaster')const valveClient = new ValveGameMaster.Client()
valveClient.query({
region: ValveGameMaster.WORLD,
gameid: 730
}) .then((servers) => {
console.log(servers)
}) .catch((err) => {
console.error(err)
})
```This will return an array of `Game` instances with the properties:
- `ip` - IP of the server
- `port` - Port of the serverThis library can also pretend to be a server, although use case for this is a bit limited and the implimentation likely does not work well or at all.