> For the complete documentation index, see [llms.txt](https://laot7490.gitbook.io/ltbridge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://laot7490.gitbook.io/ltbridge/scripting/callback.md).

# Callback

Client-server request/response pattern with async support. Cleaner than raw events when you need a return value.

## Functions

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Await</strong></td><td>Await a server callback synchronously (yields current thread).</td><td><a href="/pages/3p7Rw6tHMzTKCqL9EMzJ">/pages/3p7Rw6tHMzTKCqL9EMzJ</a></td></tr><tr><td><strong>Register</strong></td><td>Register a client-side callback that the server can invoke.</td><td><a href="/pages/ta9nGxeauFFYDZLTgQvx">/pages/ta9nGxeauFFYDZLTgQvx</a></td></tr><tr><td><strong>Trigger</strong></td><td>Trigger a server callback asynchronously (non-blocking).</td><td><a href="/pages/2yx5v4qIfLcfwM2p0Jgp">/pages/2yx5v4qIfLcfwM2p0Jgp</a></td></tr></tbody></table>
