A simple HyperSource echo server
$ npm install -g echo.hypersource.club
$ 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
Create a hypersource server
const server = require('echo.hypersource.club')()
server.listen(3000)
server.on('request', (req) => {
console.log('%s %s', req.method, req.url)
})
MIT