MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / window_on_message

Function window_on_message

extension/src/shared.ts:134–139  ·  view source on GitHub ↗
(cb: (e: Message) => void)

Source from the content-addressed store, hash-verified

132}
133
134export function window_on_message(cb: (e: Message) => void) {
135 window.addEventListener('message', e => {
136 let msg = to_message(e.data)
137 if (msg) cb(msg)
138 })
139}
140
141export function window_post_message<K extends keyof Channels>(
142 kind: K, data: Channels[K],

Callers 2

attach_debuggerFunction · 0.90
content.tsFile · 0.90

Calls 1

to_messageFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…