discovery-cloud-client
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Client or Discovery Cloud Server

A simple discovery cloud client library that can be paired with the discovery-cloud-server to be used as a cloud based alternative to discovery-swarm

Example

  import { Repo } from "hypermerge"
 
  import Client from "discovery-cloud-client"
 
  const ram: Function = require("random-access-memory")
 
  const repo = new Repo({ storage: ram })
 
  const discovery = new Client({
    url: "wss://fish-monger-9999.herokuapp.com",
    id: repo.id,
    stream: repo.stream,
  })
 
  repo.replicate(discovery)

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i discovery-cloud-client

Weekly Downloads

5

Version

0.0.3

License

ISC

Unpacked Size

53.3 kB

Total Files

26

Last publish

Collaborators

  • karissa
  • pvh
  • jeffpeterson
  • mjtognetti
  • szymon_k