Protected ReadonlyapplicationProtected ReadonlyremoteProtectedserveProtectedwebviewReturn false to prevent the protocol upgrade from going through, blocking the WebSocket connection.
The HTTP connection upgrade request received by the server.
Called after the initialization of the backend application is complete. Use this to configure the Express app before it is started, for example to offer additional endpoints.
The implementation may be async, however it will still block the configuration step until it's resolved.
the express application to configure.
either undefined or a Promise resolving to undefined.
ProtectedinitProtectedwebviewReturns a RegExp pattern matching the expected WebView endpoint's host.
Protectedwebview
Contribution for hooking into the backend lifecycle:
initialize()configure(expressApp)onStart(httpServer)onStop()