Chat fixes

This commit is contained in:
Raven Scott
2026-04-21 21:02:04 -04:00
parent 01e066d7cb
commit df45f5cab4
4 changed files with 165 additions and 38 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ Unless **`opts.enableBareOsChatChannel`** is **`false`** or **`BARE_OS_PROTOMUX_
**`setupBareOsChatChannel(mux, handlers)`**
- Registers Protomux **`bare-os-chat-v1`** (`PROTOCOL_CHAT_CHANNEL_NAME`) — six compact-encoded messages (**hello**, **helloAck**, **join**, **leave**, **`event`**, **`control`**); no Hyperdrive replication on this channel.
- Creates the session with **`mux.createChannel({ protocol, unique: true })`**, adds six compact-encoded message types, and **`chan.open()`** (same pattern as the main seed channel; not a raw `pair` callback, which only receives the session id and would not open a session if misused). Wire: **hello**, **helloAck**, **join**, **leave**, **`event`**, **`control`**; no Hyperdrive replication on this channel.
### 10.7 [packages/bare-os-protocol/test.js](../../packages/bare-os-protocol/test.js)