https://github.com/shutterstock/devent-forwarder
Forward Devent messages via HTTP, UDP or ZMQ
https://github.com/shutterstock/devent-forwarder
devent devent-hub http udp zmq
Last synced: 9 months ago
JSON representation
Forward Devent messages via HTTP, UDP or ZMQ
- Host: GitHub
- URL: https://github.com/shutterstock/devent-forwarder
- Owner: shutterstock
- License: mit
- Created: 2012-03-09T12:49:38.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2017-11-07T15:37:31.000Z (about 8 years ago)
- Last Synced: 2025-05-07T04:06:25.781Z (9 months ago)
- Topics: devent, devent-hub, http, udp, zmq
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 4
- Watchers: 44
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# 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 <