Description
Testground using JavaScript on browsers can be a very powerful tool to test any browser related software, such as js-ipfs
. However, there are some challenges we need to overcome to successfully implement this SDK in order for it to work on the browser.
Right now, I'm using the builtin Node.js os
package to obtain the network interfaces, as well as the hostname. Both of those can be easily injected externally and it is being tracked on #12.
On the other hand, we have Redis. There are no browser-compatible Redis clients I can find and that is probably related to the strict server-side nature of Redis. All JavaScript clients require Node.js builtins.
I found webdis but I have some concerns. Either way, this would need to be implemented on Testground side.
What if part of the Testground daemon run a small HTTP server dedicated to proxying calls to Redis, tailored for our purpose, with specific endpoints for publish
, subscribe
, etc? Then, both sdk-js and sdk-go could simply leverage that.