npm install @diory/client-js
# or
yarn add @diory/client-js
const clients = [localClient, S3Client, ...]
const { diosphere, room, diograph, diory } = DioryClient(clients)
diosphere.initialise([connection])
diosphere.enterRoom(room)
diograph.focusDiory(diory)
console.log('Hello Diosphere!', diosphere.toObject())
client.getDiosphere()
client.saveDiosphere()
client.getDiograph()
client.saveDiograph()
Compile typescript in real time to /dist
folder:
yarn build-watch
Run unit tests in the background:
yarn test-watch