@matter-in-motion/transport
v1.0.0
Published
Matter in Motion Extension. Transport
Downloads
4
Maintainers
Readme
Matter In Motion
Node.js framework for building applications (cli, server, etc...).
Transport
Matter In Motion transport extension.
Installation
npm i @matter-in-motion/trasnport
Usage
- Add it to your extensions in the settings.
- Add at least one transport extension
app.on('transport/http/get/user/:id', (msg, params) =>
console.log('user', params.id)
);
Transports
You can add other transports:
- http
- websockets - wip
All transports will start with application await app.start()
Methods
send(message)
Sends the response set for the message. For the message structure look into individual transport extension documentation.
Hooks
There are async hooks available for emit
, send
, start
, and stop
methods.
Settings
No settings
License: MIT.