Chat fixes
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user