@sendanor/cloud-client

Client for Sendanor's cloud framework =====================================

Usage no npm install needed!

<script type="module">
  import sendanorCloudClient from 'https://cdn.skypack.dev/@sendanor/cloud-client';
</script>

README

Client for Sendanor's cloud framework

This module creates client interfaces into services provided by @sendanor/cloud-backend.

Install: npm i --save '@sendanor/cloud-client'

import cloudClient from '@sendanor/cloud-client';

cloudClient('http://localhost:3000').then(instance => {
    return instance.getDate().then(date => {
        return instance.echo('foobar').then(str => {
            console.log('.echo("foobar") returned "' + str + '" of type '+ typeof str+ " and of class "+ str.constructor.name);
        });
    });
});