How to use the @sap-devx/webview-rpc/out.ext/rpc-extension-ws.RpcExtensionWebSockets function in @sap-devx/webview-rpc

To help you get started, we’ve selected a few @sap-devx/webview-rpc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SAP / yeoman-ui / backend / src / webSocketServer / index.ts View on Github external
wss.on('connection', (ws) => {
      console.log('new ws connection');

      this.rpc = new RpcExtensionWebSockets(ws);
      //TODO: Use RPC to send it to the browser log (as a collapsed pannel in Vue)
      const logger: YouiLog = new ServerLog(this.rpc);
      this.yeomanui = new YeomanUI(this.rpc, logger);
    });
  }

@sap-devx/webview-rpc

An RPC library for VSCode WebViews

Apache-2.0
Latest version published 2 days ago

Package Health Score

84 / 100
Full package analysis

Similar packages