diff --git a/CHANGELOG.md b/CHANGELOG.md index a905af1..7749839 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ * Feat: Squad - Replace Valve protocol with EOS protocol (By @k3ithos #731) * Feat: Clive Barker's Undying - Added support (By @dgibbs64 #733) * Chore: Update `iconv-lite` from `0.6.3` to `0.7.0` (#737) +* Fix: ASA - change EOS usage (#739, thanks @mze9412) ## 5.3.1 * Fix: HTTP requests would end up making more retries than needed due to got's internal retry mechanism (#690, thanks @RattleSN4K3) diff --git a/protocols/asa.js b/protocols/asa.js index 7289956..96fd565 100644 --- a/protocols/asa.js +++ b/protocols/asa.js @@ -8,6 +8,7 @@ export default class asa extends Epic { this.clientId = 'xyza7891muomRmynIIHaJB9COBKkwj6n' this.clientSecret = 'PP5UGxysEieNfSrEicaD1N2Bb3TdXuD7xHYcsdUHZ7s' this.deploymentId = 'ad9a8feffb3b4b2ca315546f038c3ae2' + this.wildcardMatchmaking = true } async run (state) { diff --git a/protocols/epic.js b/protocols/epic.js index 5fc5960..86b42dc 100644 --- a/protocols/epic.js +++ b/protocols/epic.js @@ -16,6 +16,7 @@ export default class Epic extends Core { this.deploymentId = null this.epicApi = 'https://api.epicgames.dev' this.authByExternalToken = false // Some games require a client access token to POST to the matchmaking endpoint. + this.wildcardMatchmaking = false this.deviceIdAccessToken = null this.accessToken = null @@ -96,7 +97,11 @@ export default class Epic extends Core { } async queryInfo (state) { - const url = `${this.epicApi}/matchmaking/v1/${this.deploymentId}/filter` + let baseUrl = this.epicApi + if (this.wildcardMatchmaking) { + baseUrl = `${baseUrl}/wildcard` + } + const url = `${baseUrl}/matchmaking/v1/${this.deploymentId}/filter` const body = { criteria: [ {