MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / DomainDispatcher

Function DomainDispatcher

packages/devtools/src/devtoolsRuntime.ts:3–12  ·  view source on GitHub ↗
(domain: string)

Source from the content-addressed store, hash-verified

1// const domainDispatchers = new Map<string, any>();
2
3export function DomainDispatcher(domain: string): ClassDecorator {
4 return (klass) => {
5 __registerDomainDispatcher(domain, klass);
6 // if (!domainDispatchers.has(domain)) {
7 // domainDispatchers.set(domain, klass);
8 // } else {
9 // console.trace(`Domain dispatcher for ${domain} already registered!`);
10 // }
11 };
12}
13
14interface ProtocolMessage<T = any> {
15 id: number;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected