Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clock.hypersource.club

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clock.hypersource.club

A HyperSource server that runs a hyperclock

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

clock.hypersource.club

A simple HyperSource clock server

Installation

$ npm install -g clock.hypersource.club

Usage

$ clock.hypersource.club --port 3000 --host '127.0.0.1'

or with npx

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

Create a new clock stream with hypersource-client.

$ hsurl ws://clock.hypersource.club --live --output ./clock

or programmatically

const hyperclock = require('hyperclock')
const ram = require('random-access-memory')
const client = require('hypersource-client')(hyperclock(ram), 'wss://clock.hypersource.club')
client.connect((err, res) => {
  res.createReadStream(({ live: true }).on('data', console.log)
})

which outputs

...
{ time: 1556405496684,
  random:
   <Buffer 6a 84 3d b4 18 0c 21 0f 7e 21 ec 13 21 3a c1 40 58 a9 05 0c d5 00 9d 27 ce 31 33 77 8d d5 95 1d> }
{ time: 1556405497683,
  random:
   <Buffer a5 80 8b 84 77 f7 61 9b 13 72 e9 f7 33 52 1e 62 27 e3 a7 4b 22 42 09 e5 06 e1 42 74 87 47 fd 47> }
...

API

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

Create a hypersource server

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

License

MIT

Keywords

FAQs

Package last updated on 27 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc