Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 607 Bytes

File metadata and controls

19 lines (15 loc) · 607 Bytes

Client for NorJS's cloud framework

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

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

import cloudClient from '@norjs/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);
		});
	});
});