A simple nodejs client for Horus.
npm install horusjs
var Horus = require('horusjs');
var client = new Horus('udp://0.0.0.0', 7600);
client.send({
message: 'Hey! This is an awesome message.'
});
The example above will attempt to connect on 0.0.0.0:7600
and send the message. Very simple, and also you can:
client.send({
tags: ['iOS'],
message: 'ANDROID IS BETTER!'
});
And you're ready to go. Horus will delivery ANDROID IS BETTER! to everyone tagged with iOS
.
Just push how many tags you want to tags
, and voilà!
client.send({
tags: [
'Android',
'WindowsPhone',
'Blackberry'
],
message: 'Bitch, please, we have React Native.'
});
For now we only support UDP as the default protocol.