registerBindings
Register the @wvb/bridge transport on a Deno desktop window: a single wvbInvoke(name, params) binding that dispatches to wvb.
Register the @wvb/bridge transport on a Deno desktop window: a single wvbInvoke(name, params)
binding that dispatches to wvb. Call after creating the window and the app, e.g.
const win = new Deno.BrowserWindow();
const app = webviewBundle({ source: { appName: 'myapp' }, protocols: [bundleProtocol('app')] });
registerBindings(win, app);
Deno.serve(app.fetch);function registerBindings(win: DenoBrowserWindow, wvb: WebviewBundle): void;Parameters
Prop
Type
Returns
void