Skip to content

Interface: DevtoolsBridge

@roomful/devtools


@roomful/devtools / DevtoolsBridge

Defined in: types.ts:322

Experimental

Exposes the devtools bridge available to browser extensions and overlays.

The bridge protocol is experimental. The single-integer DevtoolsBridge.version carries no negotiation, so the protocol may change. The pure serializeDevtoolsValue/diffSerializedState helpers are stable.

version: number

Defined in: types.ts:357

Experimental

Stores the bridge protocol version.

disconnectSimulatedPeer(instanceId): DevtoolsCommandResult

Defined in: types.ts:329

Experimental

Disconnects an injected simulated peer.

string

The room instance to target.

DevtoolsCommandResult

The command result.


getSnapshot(instanceId): DevtoolsRoomSnapshot | null

Defined in: types.ts:337

Experimental

Reads the latest room snapshot for an instance.

string

The room instance to target.

DevtoolsRoomSnapshot | null

The room snapshot, or null when unavailable.


injectSimulatedPeer(instanceId): DevtoolsCommandResult

Defined in: types.ts:345

Experimental

Injects a simulated peer into a room instance.

string

The room instance to target.

DevtoolsCommandResult

The command result.


listRooms(): DevtoolsRoomSummary[]

Defined in: types.ts:352

Experimental

Lists registered room summaries.

DevtoolsRoomSummary[]

The registered room summaries.