iopa-common-middleware
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 =BackForth = BackForthCacheMatch = CacheClientSend = ClientSend{:app;app;app;:
See iopa-mqtt
for a reference implementation of this repository