Stops listening, rejects every in-flight request, and aborts every
running onRequest handler. Other methods are not valid after disposal;
only request has a defined post-disposal result (a rejected promise).
Subscribes to a one-way event sent by the extension host. Handlers run synchronously; contain expected failures so one handler cannot interrupt the remaining listeners for that event.
Registers the handler for a request the host may send. The handler's
ctx.signal aborts if the host cancels the request (or the client is
disposed) before the handler settles.
One handler is stored per method. Registering another replaces it; dispose the earlier registration first, because either registration's disposer removes the method entry.
Sends a request to the extension host and resolves with its response.
Rejects if the host responds with an error, if options.signal aborts,
if options.timeoutMs elapses, or if the client is disposed while the
request is in flight.
Optionaloptions: WebviewRpcRequestOptions
The webview-side RPC endpoint. The mirror image of the host's
WebviewRpc: this side sendshostRequests/webviewEventsand handleswebviewRequests/hostEvents.