Component evidence

BrowserChatChannel (browser-chat.ts)

openbrowserclaw · src/channels/browser-chat.ts · typescript · MIT
realtime

Implements browser-based real-time chat messaging, bridging UI events to messaging infrastructure as a chat channel integration.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/wexare-ai/openbrowserclaw | License: MIT | Copyright 2026 Sacha Arbonel
// Provided via justclaw.it.com; keep this notice with the code.
// ---------------------------------------------------------------------------
// OpenBrowserClaw — Browser Chat Channel
// ---------------------------------------------------------------------------

import type { Channel, InboundMessage } from '../types.js';
import { DEFAULT_GROUP_ID } from '../config.js';
import { ulid } from '../ulid.js';

type MessageCallback = (msg: InboundMessage) => void;
type TypingCallback = (groupId: string, typing: boolean) => void;
type MessageDisplayCallback = (groupId: string, text: string, isFromMe: boolean) => void;

/**
 * In-browser chat channel. Bridges the UI chat component with the orche

... (truncated -- full source via MCP)