iopa-tcp
About
iopa-tcp
is an API-First Transport Control Protocol (TCP) stack for the Internet of Things (IoT), based on the Internet of Protocols Alliance (IOPA) specification
It servers TCP messages in standard IOPA format and allows existing middleware for Connect, Express and limerun projects to consume/send each mesage.
It is an open-source, standards-based, lighter-weight replacement for other TCP clients and brokers
Written in plain javascript for maximum portability to constrained devices, and consumes the standard node.js require('net')
library
Makes TCP connections look to an application like a standard Request Response REST (HTTP-style) message so little or no application changes required to support multiple REST protocols on top of this transport.
Status
Fully working prototype include server and client.
Includes:
Server Functions
- app.createServer
- close
Client Functions
- connect
Installation
npm install iopa-tcp
Install typings for Intellisense (e.g., Visual Studio Code, Sublime TSD plugins, etc.)
npm run typings
Example usage
const iopa = tcp = var app = ; app; app; if !processenvPORT processenvPORT = 1883; app ; })