Skip to content

involvestecnologia/nats-stream-lib

Repository files navigation

@involves/nats-stream-lib

Build status

Install

npm install @involves/nats-stream-lib --save

Example usage

    const express = require('express')
    const { NatsStreamMiddleware } = require('@involves/nats-stream-lib')

    const app = express()
    app.use(NatsStreamMiddleware.setService)
    app.get('/:id', (req, res) => {
        await req.integration.natsStream.publish('queueName', 'message')
        res.send()
    })

How to run the tests

At the terminal, just type the command:

make test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published