register
register<
C>(steamCallback,handler):Handle
Registers a handler for a Steam callback. Needs init().
The handler receives each callback payload as a JSON-compatible value on the JavaScript event loop. Steam events are dispatched only while runCallbacks() runs.
Type Parameters
Section titled “Type Parameters”C extends keyof CallbackReturns
Parameters
Section titled “Parameters”steamCallback
Section titled “steamCallback”C
The callback kind to listen for.
handler
Section titled “handler”(value) => void
Called with each payload of that callback.
Returns
Section titled “Returns”a Handle; call disconnect() on it to stop the handler.
Turn ideas into shipped software.
HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.
- Smart
- OpenSpec workflows turn intent into a path from proposal to shipped change.
- Efficient
- Multi-agent execution runs research, build, and review in parallel.
- Fun
- Rich UI interactions make planning, agent work, and projects easier to follow.
© 2026 HagiCode | Powered By hagilight-starlight@0.23.0 | Branch: main | Commit: 7164ec7 | Built:
