Forward Devent messages via HTTP, UDP or ZMQ
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
LICENSE
README.md
package.json

README.md

devent-forwarder

devent-forwarder accepts messages via http, udp or zmq and forwards them on to the devent-hub.

Server

./bin/forwarder --zmq-upstream tcp://hubhost:6666

Clients

http:

curl -d '{"bob": "ross"}' -H "Content-Type: application/json"  http://localhost:7664/painters.best

udp:

use IO::Socket;
use strict;

my $sock = IO::Socket::INET->new(
  Proto    => 'udp',
  PeerPort => 7665,
  PeerAddr => 'localhost',
) or die "Could not create socket: $!\n";

$sock->send( qq[painters.best\n{"bob": "ross"}] )
  or die "Send error: $!\n";

zmq:

dr-send 'tcp://localhost:7666' painters.best <<EOF
  {"bob": "ross"}
EOF

Authors

This library was developed by Douglas Hunter at Shutterstock

License

MIT © 2012-2017 Shutterstock Images, LLC