From 0bfb0a6fac84e12e9651f6687ed6a9218b1f906c Mon Sep 17 00:00:00 2001 From: marlon-erler Date: Mon, 8 Jul 2024 18:27:30 +0200 Subject: [PATCH] add TOC --- README.md | 23 +++++++++++++++++++++-- package.json | 2 +- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bbbd044..5cd71ad 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,25 @@ The UDN project aims to provide decentralized and localhost-able infrastructure for messaging and communication. +# Contents + +- [How it works](#how-it-works) + - [Channels](#channels) + - [Scalability](#scalability) + - [Example](#example) +- [User's guide](#users-guide) + - [Getting Connected](#getting-connected) + - [Using Apps](#using-apps) +- [Administrator's Guide](#administrators-guide) + - [Getting Started](#getting-started) + - [Configuration](#configuration) + - [TLS](#tls) + - [Connecting multiple servers](#connecting-multiple-servers) +- [App Developer's Guide](#app-developers-guide) + - [Guidelines](#guidelines) + - [The Recommended Way](#the-recommended-way) + - [The Manual Way](#the-manual-way) + # How it works ## Introduction @@ -202,7 +221,7 @@ As explained in the _How it works_ section, you may want to use multiple servers - Subscribe only to the primary channel, send on the primary and all secondary channels. - Make sure to label these channels as primary and secondary (you may translate these along with the rest of your app) as users are instructed on these terms. -## The recommended way +## The Recommended Way **Base** For TypeScript-based projects, you can use the [udn-frontend](https://github.com/marlon-erler/udn-frontend) package to manage the connection. This project provides methods for connecting/disconnecting, subscribing/unsubscribing, and sending messages. If you want to/need to implement this yourself, follow the manual instructions. @@ -217,7 +236,7 @@ Both of these projects are very minimal, bloat-free, and quick to get started wi 4. Generate your app icon [here](https://icongen.onrender.com/), move it to the `dist` directory 5. Start developing -## The manual way +## The Manual Way UDN is based on WebSockets sending JSON strings. diff --git a/package.json b/package.json index 52b8f65..69e3b55 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "udn", - "version": "1.0.0-beta10", + "version": "1.0.0-beta11", "description": "A websocket-based infrastructure for decentralized networks ", "bin": { "start": "index.ts"