echo.hypersource.club

0.1.0 • Public • Published

echo.hypersource.club

A simple HyperSource echo server

Installation

$ npm install -echo.hypersource.club

Usage

echo.hypersource.club --port 3000 --host '127.0.0.1'

or with npx

$ npx echo.hypersource.club --port 3000 --host '127.0.0.1'

Echo a message with hypersource-client.

echo hello | hsurl ws://echo.hypersource.club
hello

API

server = require('echo.hypersource.club')()

Create a hypersource server

Example

const server = require('echo.hypersource.club')()
server.listen(3000)
server.on('request', (req) => {
  console.log('%s %s', req.method, req.url)
})

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i echo.hypersource.club

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

5.2 kB

Total Files

5

Last publish

Collaborators

  • werle