Test Client
The test client included with fosscord-server is deprecated and will be removed in favour of Discord-Client-Proxy in the future
The test client is a proxy to the Discord.com client used for development purposes.
You can enable the test client by setting the client_useTestClient
config value in your database.
How it works
By editing the GLOBAL_ENV
variable used by the client, we can trick it into sending requests to the API/Gateway/CDN/etc to us,
instead of Discord.com. We simply proxy it from Discord.com otherwise.
Updating
To update the client version served, edit the 4 <script>
tags in the <body>
of assets/client_test/index.html
,
with ones used by a client version you wish to use.
To get the latest client scripts, simply download the HTML served by https://discord.com/app (through wget https://discord.com/app
, for example)
Do not replace the assets/client_test/index.html
file with a fresh one from Discord.com, as there are additional changes made to the file by the Fosscord team.