Skip to content

hypersource-club/echo.hypersource.club

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

echo.hypersource.club

A simple HyperSource echo server

Installation

$ npm install -g 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

About

A simple HyperSource echo server

Resources

License

Stars

Watchers

Forks

Packages

No packages published