Example
                                
                                 Example copied to clipboard
                                
                                    Example copied to clipboard
                            
                            
                            
                        Client (on server) tests for example interface
I'm not sure how to test Metacom class in Client.js in Metacom package, for now, I have chosen to test the application code alongside to Example server. However, there are some problems:
- No redis in lib inside application code (service is up and running)
- remoteMethod.js and webHook.js seem incomplete (at least I don't understand how I should run them)
- No lib.resmon, so no system info no subscription tests (yes, it's Windows, but at least some fallback strategy would be nice)
- I need some help with uploadFile method testing, like an example of uploading and confirming success.
- I'd like an example of event subscription test.
Subscription:
api.example.on('resmon', (data) => {
  console.log({ data });
});
I have tried a lot of approaches to make tests in test/client.js work (those attempts are partially commented out in the code), but it seems there are significant problems with metacom/lib/client.js
- There is still no redis in lib on server
- httpCall returns index.html to any POST request to /api
- So, there is no way to test uploading
- I still have no clear understanding how to test subscription Any help would be greatly appreciated, it's a bit of an obstacle to my further development.
I took all updates and changed test/client.js accordingly. There are still some problems, old and new:
- HttpTransport does not work:
Error: Request timeout
    at Timeout._onTimeout (C:\usr\sites\metarhia\Example\node_modules\metacom\lib\client.js:181:22)
- No "accountId" field from rpc example/getClientInfo
- There is still no redis in lib on server
TypeError: Cannot read properties of undefined (reading 'set')
  method (\application\api\example.1\redisSet.js:4:36)