gamoraa
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Gamoraa GRPC Framework for Node

Simplest framework for building GRPC services.

How to use

import path from 'path'
import Server from 'gamoraa'
 
const server = new Server({
    address: '0.0.0.0',
    port: 50051,
})
 
server.addServiceWithPackageName(
    path.join(__dirname, '../../examples/protos/helloworld.proto'),
    'helloworld',
    'Greeter',
    {
        sayHello: async function(context) {
            const name = context.request.name
            context.send({ message: 'Hello ' + name })
        },
    }
)
 
server.startInsecure()

License

Licensed under MIT.

Package Sidebar

Install

npm i gamoraa

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

64.2 kB

Total Files

24

Last publish

Collaborators

  • mahmed8003