# stimp-client

> Stomp client in Node.js. Please refer to readme.

Latest version **0.0.3** (published 2015-12-28) · GPL-2.0 license · 0 weekly downloads

## Install

```sh
npm install stimp-client
pnpm add stimp-client
yarn add stimp-client
bun add stimp-client
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2015-12-28 |
| First published | 2015-12-23 |
| Weekly downloads | 0 |
| License | GPL-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | 'Paulo |
| Maintainers | paulosimao |
| Keywords | stomp, client, mq, message |

## Links

- npm: https://www.npmjs.com/package/stimp-client
- Repository: https://github.com/paulosimao/stimp-client
- Homepage: https://github.com/paulosimao/stimp-client#readme
- Issues: https://github.com/paulosimao/stimp-client/issues
- npm.io page: https://npm.io/package/stimp-client

## Dependencies (1)

- [lillog](https://npm.io/package/lillog.md) ^1.0.1

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2015-12-28
- 0.0.2 — 2015-12-28
- 0.0.1 — 2015-12-23

## README

# Stimp Client
Simple STOMP Client intended to support STOMP 1.2

Important - please refer to Stimp Server - this client counterpart. (https://github.com/paulosimao/stimp-server)

Ok folks, now this is WIP, but if you´re seeking to an end to end STOMP 1.2 solution, you will get it!

For those who want to start fast:

##### Sender:

    var client = require('stimp-client')();
    client.connect('127.0.0.1', 61613, null, function () {
        for (var i = 0; i < 3000; i++) {
            client.send('/topic/a', 'TEST:' + i);
        }
    });


##### Receiver:

    var client = require('stimp-client')();
    client.connect('127.0.0.1', 61613, null, function () {
        client.subscribe('/topic/a', null, function () {
            client.on('message', function (body, msg) {
                console.log(body);
            });
        });
    });


##### Options:

  You can optionally set parameters to client:

     config: {
         autoack: true
     }
 - `autoack`:true|false - Tell client if ack should be sent automatically in response to messages received.In case false is set, you can reply to server informing a message was wrongly processed. In this case, message will be moved to deadletter queue in the server.

Please note this is working fine, but not ready for production yet - testing support is welcome.

##### TODO (in order of priority):
- ~~Messages kept in server backend where there is no listener are not yet been forwarded to client~~
- ~~Queues and Topics (Ok this is serverside, but be aware)behave the same way at this time (WIP - keep in mind)~~
- Transactions are not supported yet
- Client not validated against other servers such as AMQ or Rabbit
- There is pleny of space for performance improvement.
- **Testing testing testing...**

---
_Source: https://npm.io/package/stimp-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
