improve doc

This commit is contained in:
marlon-erler
2024-07-08 16:35:06 +02:00
parent 04897c78be
commit 4daa4fd3ad
+3 -1
View File
@@ -112,6 +112,7 @@ As you can see, there are many ways to connect multiple servers and communicate
2. To use an app, **open it in your web browser**. Most apps will install offline support automatically so you can use them on local networks without an internet connection. 2. To use an app, **open it in your web browser**. Most apps will install offline support automatically so you can use them on local networks without an internet connection.
3. If you are using a smartphone, **add the app to your homescreen and launch it**. 3. If you are using a smartphone, **add the app to your homescreen and launch it**.
4. Enter your server address when asked, but note: 4. Enter your server address when asked, but note:
- `http://` or `https://` (the secure variant) are protocols to request data and receive a single response - `http://` or `https://` (the secure variant) are protocols to request data and receive a single response
- To send messages, apps use so-called WebSockets instead. Their protocol is `ws://` or `wss://` (the secure variant) - To send messages, apps use so-called WebSockets instead. Their protocol is `ws://` or `wss://` (the secure variant)
- You will need to **replace `http` with `ws`**: - You will need to **replace `http` with `ws`**:
@@ -154,7 +155,8 @@ The port and channels are self-explanatory. For servers, you'll need to provide
"wss://192.168.0.200:3000" "wss://192.168.0.200:3000"
], ],
"subscribedChannels": [ "subscribedChannels": [
"blue", "purple" "secondary-channel-1",
"secondary-channel-2"
] ]
} }
``` ```