@wendoo/bridge-app
v0.2.2
Published
App-side client for the Wendoo bridge
Maintainers
Readme
@wendoo/bridge-app
App-side client for the Wendoo bridge.
Wraps @wendoo/bridge-client with app-role-specific behavior: automatic join code
management and the "app" WebSocket path. Apps that connect to the bridge should depend on
this package rather than using bridge-client directly.
Usage
import { createAppBridge } from "@wendoo/bridge-app";
import { createCompilationFeature } from "@wendoo/bridge-app/compilation";
const bridge = createAppBridge({
appName: "My App",
bridgeUrl: "ws://localhost:6464",
filesystem: myProjectFileSystem,
features: [createCompilationFeature({ compiler })],
});
bridge.start();The bridge facade supports:
start()/stop()-- lifecycle managementrequestSync()-- request a full project file sync from the VS Code extensionsnapshot()-- current connection status and join codeonStateChange(...)/onRemoteChange(...)-- event subscriptions
Optional features (like compilation) attach through the features array and receive
a AppBridgeFeatureContext with project file access, sync hooks, and diagnostic/status
publication helpers.
Install
npm install @wendoo/bridge-appLicense
MIT
