JSPM

echo-it

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q18290F
  • License ISC

Named echo servers for targeting messages

Package Exports

  • echo-it

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (echo-it) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

echo-it

Build Status Build status Coverage Status

Named echo servers for targeting messages.

Install

npm install --save-dev echo-it

Usage

Start a named echo-it server from the command line

echo-it myChannel

Or in javascript

const echoIt = require('echo-it');
await echoIt.listen({
  name: 'myChannel',
});

Create an echo function to connect to that named server

const echoIt = require('echo-it');
const echo = await echoIt.connect({
  name: 'myChannel',
});

Echo messages to have the server output them to the console

echo('message 1\n');
echo('message 2\n');