DF8003: connectionMeta() Before Hub Instance Ready
Message
connectionMeta() was called before initHub finished initializing.
Cause
initHub is a synchronous factory that kicks off asynchronous initialization eagerly, creating the hub context, mounting every frame, and binding the WebSocket tier. connectionMeta() describes the WebSocket binding, which only exists once that initialization completes; calling it earlier has nothing correct to return.
Example
import { initHub } from '@devframes/hub/initiate'
const hub = initHub({ base: '/__devframes/', devframes: [git] })
hub.connectionMeta() // ✗ throws DF8003: init is still in flight
await hub.ready
hub.connectionMeta() // ✓ { backend: 'websocket', websocket: { … } }Fix
Await instance.ready (or any request through instance.handler, which awaits readiness internally) before reading connectionMeta().
Source
packages/hub/src/node/initiate.ts:initHub'sconnectionMeta()throws this while initialization is still pending.
DF8002: Both devframes and context Passed to initHub/buildHub
initHub/buildHub received both devframes and context; the two assembly modes are mutually exclusive.
DF8004: Devframe Id Is Not a Mountable URL Segment
Devframe id "{id}" is not a mountable URL segment; the hub mounts each frame at <base><id>/.