An open API service indexing awesome lists of open source software.

https://github.com/horse-framework/horse-client-js

NodeJS Client for Horse Messaging Server
https://github.com/horse-framework/horse-client-js

Last synced: 8 months ago
JSON representation

NodeJS Client for Horse Messaging Server

Awesome Lists containing this project

README

          

# horse-client-js

NodeJS Client for Horse Messaging Server

### Installation ###

```
npm i horse-client-js
```

### Sample Usage ###

```js
import { HorseClient } from './horse-client';

let client = new HorseClient();
client.addRemoteHost('horse://localhost:15400');
client.onlog.subscribe(log => {
console.log('LOG: ' + log);
});

client.queue.subscribe('queue-name')
.subscribe(context => {
console.log('consumed', context.message);
});

client.connect();
```