docs(webui): revise README to clarify WebSocket channel setup and sequence of startup steps

This commit is contained in:
Xubin Ren
2026-04-21 12:46:17 +00:00
parent c1957e14ff
commit 1b692debdc
2 changed files with 18 additions and 4 deletions
+8 -2
View File
@@ -194,13 +194,19 @@ nanobot agent
<img src="images/nanobot_webui.png" alt="nanobot webui preview" width="900">
</p>
**1. Start the gateway**
**1. Enable the WebSocket channel in `~/.nanobot/config.json`**
```json
{ "channels": { "websocket": { "enabled": true } } }
```
**2. Start the gateway**
```bash
nanobot gateway
```
**2. Start the webui dev server**
**3. Start the webui dev server**
```bash
cd webui
+10 -2
View File
@@ -35,7 +35,15 @@ From the repository root:
pip install -e .
```
### 2. Start the gateway
### 2. Enable the WebSocket channel
In `~/.nanobot/config.json`:
```json
{ "channels": { "websocket": { "enabled": true } } }
```
### 3. Start the gateway
In one terminal:
@@ -43,7 +51,7 @@ In one terminal:
nanobot gateway
```
### 3. Start the WebUI dev server
### 4. Start the WebUI dev server
In another terminal: