Skip to content

inkandswitch/discovery-cloud-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published