1.2.0 • Published 2 years ago

horse-client-js v1.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

horse-client-js

NodeJS Client for Horse Messaging Server

Installation

npm i horse-client-js

Sample Usage

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();
1.2.0

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago