Actor Handlers
Handlers implement client methods inside actor context.
The simplest handler pattern is actor-bound.
export const = (
...,
.(function* ({ }) {
const { , : } = yield*
const { } = yield* .
yield* ..("MoveMade", { , })
yield* (, , )
}),
)handler(method, implementation) is a typed pass-through. It returns the
handler unchanged at runtime but narrows its payload, success, and failure types
to the supplied method.
Related concepts
- Actor Context covers
yield* ActorTag. - Client Handles covers sends, broadcasts, saves, attachments, and disconnects.
- Methods covers shared
handler(...)implementations.