Redis registry for @lucets/registry. Allows a decentralized application to send messages to peers on remote instances using Redis Streams.
Install through npm:
npm i @lucets/redis-registry
See @lucets/registry for more information.
import IORedis from 'ioredis'
import RedisRegistry from '@lucets/redis-registry'
const connection = new IORedis()
const registry = new RedisRegistry({ connection })
// Example: create a new client
await registry.create('id', {
url: '/url'
})
Copyright 2021 Michiel van der Velde.
This software is licensed under the MIT License.