Socket
Book a DemoInstallSign in
Socket

devent-forwarder

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devent-forwarder

Forward Devent messages via HTTP, UDP or ZMQ

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Contribute

Please do! Check out the CONTRIBUTING guide.

License

MIT © 2012-2017 Shutterstock Images, LLC

Keywords

devent

FAQs

Package last updated on 07 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts