Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

iopa-common-middleware

Package Overview
Dependencies
Maintainers
2
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iopa-common-middleware

iopa-common-middleware is a core set of iopa middleware for building self-hosted servers

latest
Source
npmnpm
Version
1.4.1
Version published
Maintainers
2
Created
Source

IOPA
iopa-common-middleware

Build Status IOPA limerun

NPM

About

iopa-common-middleare is a core set of IOPA middleware for building self-hosted servers

Written in plain javascript for maximum portability to constrained devices

Status

Working prototype

Includes:

IOPA BackForth (middleware)

  • Automatically matches requests and responses between connected devices based on sequential conversation

IOPA Cache and Match (middleware)

  • Automatic caching of outbound requests

  • Automatic matching of inbound responses to original requests based on session and message identifiers

  • Compatible with any transport including MQTT, CoAP and raw TCP / UDP

IOPA ClientSend (middleware)

  • Adds helper methods .send() and .observe() to IOPA context requests

  • These methods return a promise which complete on response

Installation

npm install iopa-common-middleware

Usage

const iopa = require('iopa')
    , BackForth = require('iopa-common-middleware').BackForth
    , CacheMatch = require('iopa-common-middleware').Cache
    , ClientSend = require('iopa-common-middleware').ClientSend
       
function MyProtocolServer(options, appFunc) {

:

app.use(BackForth);
app.use(CacheMatch.Cache);
app.use(ClientSend);

:


See iopa-mqtt for a reference implementation of this repository

Keywords

limerun

FAQs

Package last updated on 05 Jul 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