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

Method emit

packages/devtools/src/devtoolsRuntime.ts:50–62  ·  view source on GitHub ↗
(name: string, params: any)

Source from the content-addressed store, hash-verified

48 // }
49
50 public emit(name: string, params: any) {
51 try {
52 // console.info('[emit]', { method: name, params });
53 __inspectorSendEvent(
54 JSON.stringify({
55 method: name,
56 params,
57 }),
58 );
59 } catch (err) {
60 console.error(err);
61 }
62 }
63
64 public timestamp(): number {
65 return __inspectorTimestamp();

Callers 5

configureServerFunction · 0.80
removeDOMStorageItemMethod · 0.80
setDOMStorageItemMethod · 0.80
clearMethod · 0.80
enableMethod · 0.80

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected