MCPcopy
hub / github.com/SteamDeckHomebrew/decky-loader / emit

Function emit

backend/decky_loader/plugin/imports/decky.py:220–225  ·  view source on GitHub ↗

Triggers all event listeners in the frontend waiting for `event`, passing the remaining `*args` as the arguments to each listener function. (Event listeners are set up in the frontend via the `addEventListener` function from `@decky/api`)

(event: str, *args: Any)

Source from the content-addressed store, hash-verified

218# This is overriden with an actual implementation before being passed to any plugins
219# in ../sandboxed_plugin.py 's initialize function
220async def emit(event: str, *args: Any) -> None:
221 """
222 Triggers all event listeners in the frontend waiting for `event`, passing the remaining `*args` as the arguments to each listener function.
223 (Event listeners are set up in the frontend via the `addEventListener` function from `@decky/api`)
224 """
225 pass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected