You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fetch a Steam master server to retrieve a list of game server hosts.
19
19
-`masterServer`: Host and port of the master server to call.
20
20
-`region`: The region of the world where you wish to find servers in. Use `REGIONS.ALL` for all regions.
21
21
-`filter`: Optional. Object which contains filters to be sent with the query. Default is { }.
22
22
-`timeout`: Optional. Time in milliseconds after the socket request should fail. Default is 1 second.
23
+
-`maxHosts`: Optional. Return a limited amount of hosts. Stops calling the master server after this limit is reached. Can be used to prevent getting rate limited.
23
24
- Returns: A promise including an array of game server hosts.
* @param region The region of the world where you wish to find servers in. Use REGIONS.ALL for all regions.
13
13
* @param filters Optional. Object which contains filters to be sent with the query. Default is { }. Read more [here](https://developer.valvesoftware.com/wiki/Master_Server_Query_Protocol#Filter).
14
14
* @param timeout Optional. Time in milliseconds after the socket request should fail. Default is 1 second.
15
+
* @param maxHosts Optional. Return a limited amount of hosts. Stops calling the master server after this limit is reached. Can be used to prevent getting rate limited.
15
16
* @returns A promise including an array of game server hosts.
0 commit comments