Skip to content

webfaas/core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebFaas Core

Minimalist FaaS framework for node.

NPM Version Linux Build Test Coverage

FaaS Micro Framework

Example

import { Core } from "@webfaas/webfaas-core";

const core = new Core();

(async function(){
    let msg = {} as IMessage
    msg.header.name = "@registry1/mathmessage";
    msg.header.version = "0.0.1";
    msg.payload = {x:2, y:3};
    var response: any = await core.sendMessage(msg);
    if (response){
        console.log("response", response);
    }
    else{
        console.log("not response");
    }
})();

License

MIT