MCPcopy Create free account
hub / github.com/Kong/insomnia / invokePluginBridgeMethod

Function invokePluginBridgeMethod

packages/insomnia/src/entry.preload.ts:37–42  ·  view source on GitHub ↗
(
  method: T,
  args?: unknown,
)

Source from the content-addressed store, hash-verified

35 : never;
36
37const invokePluginBridgeMethod = <T extends PluginInvokeMethod>(
38 method: T,
39 args?: unknown,
40): Promise<PluginMethodResult<T>> => {
41 return invokeWithNormalizedError(`plugins.${method}`, args) as Promise<PluginMethodResult<T>>;
42};
43
44const webSocket: WebSocketBridgeAPI = {
45 open: options => invokeWithNormalizedError('webSocket.open', options),

Callers 1

entry.preload.tsFile · 0.85

Calls 1

Tested by

no test coverage detected