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

Function invokePluginBridgeMethod

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

Source from the content-addressed store, hash-verified

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

Callers 1

entry.preload.tsFile · 0.85

Calls 1

Tested by

no test coverage detected