mountBotMessage
mountBotMessage<
Host,Message,Snapshot,Interaction,Props,R,E>(options):Effect<{message:Message;root:BotMessageRoot<Host,Message,Snapshot,Interaction>; },MessageTargetError|MessageMountError|E,R>
Defined in: packages/core/src/message/mount.ts:203
Shared message lifecycle for node-based bot platforms.
It mounts the component tree in a fiber owned by the returned root’s Scope, waits for the platform target’s first message, and returns an explicitly closable root. Closing the root closes the Scope, which releases the renderer, query cache, target fiber and every Layer built for the message.
Type Parameters
Section titled “Type Parameters”Host
Message
Section titled “Message”Message
Snapshot
Section titled “Snapshot”Snapshot
Interaction
Section titled “Interaction”Interaction
Props
R = never
E = never
Parameters
Section titled “Parameters”options
Section titled “options”MountBotMessageOptions<Host, Message, Snapshot, Interaction, Props, R, E>
Returns
Section titled “Returns”Effect<{ message: Message; root: BotMessageRoot<Host, Message, Snapshot, Interaction>; }, MessageTargetError | MessageMountError | E, R>