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

Function port_post_message

extension/src/shared.ts:125–129  ·  view source on GitHub ↗
(
    port: Port, kind: K, data: Channels[K],
)

Source from the content-addressed store, hash-verified

123 return {kind, data} as any
124}
125export function port_post_message<K extends keyof Channels>(
126 port: Port, kind: K, data: Channels[K],
127) {
128 port.postMessage({kind, data})
129}
130export function port_post_message_obj(port: Port, e: Message) {
131 port.postMessage(e)
132}

Callers 5

on_connectedFunction · 0.90
on_disconnectedFunction · 0.90
connect_portFunction · 0.90
content.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…