Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

exorelay

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exorelay

Communication relay between JavaScript code bases and the Exosphere environment

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Exosphere Communication Relay for JavaScript

Communication relay between JavaScript code bases and the Exosphere environment

Circle CI

Add an Exorelay to your application

ExoRelay = require("exorelay");

exoRelay = new ExoRelay();
exoRelay.listen();

More details in the spec

Handle incoming commands

Register a handler for incoming commands:

// register handlers for commands
exoRelay.registerHandler("hello-world", function() {
  // handle the command here ...
});

Test this setup:

curl -X POST -i http://localhost:4000/run/hello-world

More details in the spec

Send outgoing commands

  • send an outgoing command:

    exoRelay.send({command: "hello-world"}, done);
    
  • attach payload to the sent command:

    exoRelay.send({ command: "hello", payload: { name: "world" }}, done);
    
  • mention that this command is a reply to a previously received command with id "123":

    exoRelay.send({ command: "hello", "reply-to": "123", done);
    

More details in the spec

FAQs

Package last updated on 10 Jan 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc