Interface: AttachOptions<S>
Interface: AttachOptions<S>
Section titled “Interface: AttachOptions<S>”Defined in: devtools/src/bridge.ts:11
Type Parameters
Section titled “Type Parameters”S extends Schema<Record<string, AnyTable>>
Properties
Section titled “Properties”dbName
Section titled “dbName”
readonlydbName:string
Defined in: devtools/src/bridge.ts:12
schema
Section titled “schema”
readonlyschema:S
Defined in: devtools/src/bridge.ts:13
refreshIntervalMs?
Section titled “refreshIntervalMs?”
readonlyoptionalrefreshIntervalMs?:number
Defined in: devtools/src/bridge.ts:15
Milliseconds between snapshot broadcasts. Default 500.
targetOrigin?
Section titled “targetOrigin?”
readonlyoptionaltargetOrigin?:string
Defined in: devtools/src/bridge.ts:22
Post messages only to origins listed here. Default is "*" which
matches the Chrome DevTools “any” bridge. A production runtime
behind sensitive schemas should narrow this to the extension’s
exact origin.
allowedOrigins?
Section titled “allowedOrigins?”
readonlyoptionalallowedOrigins?: readonlystring[] |"same-origin"|"*"
Defined in: devtools/src/bridge.ts:33
Accept command messages from these origins only. Defaults to
"same-origin" — the current page origin. Pass an explicit list
of extension origins (chrome-extension://…) to authorise them.
v1.0 zeus W2 fix: without this check, any embedded iframe /
cross-frame parent could post a command: "reset-local-state"
message and wipe the user’s local database. Ignored (any origin
accepted) only when set to "*" — the caller has taken explicit
responsibility.
runtime?
Section titled “runtime?”
readonlyoptionalruntime?: {name:string;version:string; }
Defined in: devtools/src/bridge.ts:38
Runtime identity broadcast on the initial hello. Defaults to
{ name: "@sh1n4ps/plasma-client", version: "unknown" }.
readonlyname:string
version
Section titled “version”
readonlyversion:string