rocket.chat.mqtt
Version:
It's a MQTT Server, using redis to scale horizontally.
12 lines (8 loc) • 330 B
text/typescript
import * as hyperid from '..'
const urlSafeInstance = hyperid({ fixedLength: false, urlSafe: true })
const fixedLengthInstance = hyperid(true)
const urlSafeId = urlSafeInstance()
const fixedLengthId = fixedLengthInstance()
// decode
console.log(hyperid.decode(urlSafeId))
console.log(fixedLengthInstance.decode(fixedLengthId))