Skip to content

matter-in-motion/transport

Repository files navigation

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/transport

Usage

  1. Add transport 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.