docs(webui): revise README to clarify WebSocket channel setup and sequence of startup steps
This commit is contained in:
@@ -194,13 +194,19 @@ nanobot agent
|
|||||||
<img src="images/nanobot_webui.png" alt="nanobot webui preview" width="900">
|
<img src="images/nanobot_webui.png" alt="nanobot webui preview" width="900">
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
**1. Start the gateway**
|
**1. Enable the WebSocket channel in `~/.nanobot/config.json`**
|
||||||
|
|
||||||
|
```json
|
||||||
|
{ "channels": { "websocket": { "enabled": true } } }
|
||||||
|
```
|
||||||
|
|
||||||
|
**2. Start the gateway**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nanobot gateway
|
nanobot gateway
|
||||||
```
|
```
|
||||||
|
|
||||||
**2. Start the webui dev server**
|
**3. Start the webui dev server**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd webui
|
cd webui
|
||||||
|
|||||||
+10
-2
@@ -35,7 +35,15 @@ From the repository root:
|
|||||||
pip install -e .
|
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:
|
In one terminal:
|
||||||
|
|
||||||
@@ -43,7 +51,7 @@ In one terminal:
|
|||||||
nanobot gateway
|
nanobot gateway
|
||||||
```
|
```
|
||||||
|
|
||||||
### 3. Start the WebUI dev server
|
### 4. Start the WebUI dev server
|
||||||
|
|
||||||
In another terminal:
|
In another terminal:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user