That would be really helpful, Im trying to find a very simple demo in order to do a presentation on why we should switch from crossbar.io (websockets) to gRPC, so far its not as simple as it seems at firlst look. Mali looks really clean and simple, but it appears to be focused primarily towards the backend of things.
our ultimate goal is to use web components (front end micro services) which talk to our backend server micro services using gRPC
ctx.res = { foo: 'bar' }
, but I get the typescript error "Type '{ foo: string; }' is not assignable to type 'GrpcResponse'". Has anyone here written a Mali server with TypeScript and has any advice on this?
Hello, if you just run npm test
you should get a coverage report:
-------------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
-------------|----------|----------|----------|----------|-------------------|
All files | 98.93 | 94.12 | 98.48 | 99.18 | |
app.js | 99.41 | 95.45 | 100 | 99.4 | 323 |
context.js | 100 | 100 | 100 | 100 | |
lo.js | 100 | 100 | 100 | 100 | |
request.js | 100 | 100 | 100 | 100 | |
response.js | 100 | 100 | 100 | 100 | |
run.js | 96.36 | 93.75 | 94.74 | 98.11 | 89 |
utils.js | 98.55 | 87.27 | 100 | 98.55 | 57 |
-------------|----------|----------|----------|----------|—————————|
Coverage is also available online: https://coveralls.io/github/malijs/mali