@matter-in-motion/transport

1.0.0 • Public • Published

Matter In Motion

NPM Version NPM Downloads

Node.js framework for building applications (cli, server, etc...).

Transport

Matter In Motion transport extension.

Installation

npm i @matter-in-motion/trasnport

Usage

  1. Add it to your extensions in the settings.
  2. 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:

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.

Package Sidebar

Install

npm i @matter-in-motion/transport

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

11.3 kB

Total Files

7

Last publish

Collaborators

  • velocityzen