This optional feature lets you retrieve the current domain configured for your region that is needed to launch our games or contact our game servers. While these domains are usually static, RubyPlay may update them due to regional or infrastructure changes. Using this endpoint ensures the correct domain is used in all cases.
If this function becomes required for your setup, the RubyPlay support team will advise accordingly.
Regional outages affect only specific geographic areas, meaning that users located in the impacted region may be unable to launch our games. However, users in all other regions will remain unaffected until the issue is resolved.
To ensure uninterrupted access to the most up-to-date available domain, we recommend implementing a polling mechanism within your application that queries this endpoint at regular intervals.
- Recommended polling frequency: Every 1 to 5 minutes (Adjust based on your service level agreements and tolerance for potential traffic impact.)
If your current workflow assumes static URLs to access our game launcher or our game server, consider polling this endpoint before redirecting users or generating those links. This approach ensures resilience in the event of regional disruptions.
You can assume that the structure of the links you’ve been using so far has not changed.
For example, if you were using a URL like:
https://rubyplay-domain-alpha.com/some/path?server_url=https://srv.rubyplay-domain-alpha.com
and, after polling, you discover that the new available domain is rubyplay-domain-beta.com, then you only need to update the URL to:
https://rubyplay-domain-beta.com/some/path?server_url=https://srv.rubyplay-domain-beta.com
Requests to this endpoint are rate-limited per client. If you choose to poll frequently, we strongly recommend implementing caching to reduce redundant requests.
API Call Sample:
- stagehttps://asia.stage.rubyplay.io/api/v1/available-domain
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
https://asia.stage.rubyplay.io/api/v1/available-domain{ "domain": "dev.rubyplay.com" }
Response Schema:
The available domain for the game launcher