EnqueueInput
Defined in: react/src/client.ts:145
How a client talks to a host. Every method is optional, and the client offers only what its transport can do.
Three shapes of host fit it. A POST whose response is the stream: send returns events. A
start call plus a separate tail: send resolves and observe streams. A message port: both
wrap the port. A host that cannot resume after a cursor opens every observation with a
snapshot.
Hand the client only events that parseChatEvent returned. To say what became of a command,
throw a TransportError. Anything else thrown counts as an unknown outcome.
Extends
Section titled “Extends”Properties
Section titled “Properties”attachments?
Section titled “attachments?”optional attachments?: readonly AttachmentRef[];Defined in: react/src/client.ts:71
Inherited from
Section titled “Inherited from”clientId
Section titled “clientId”clientId: string;Defined in: react/src/client.ts:68
Made by the client once per message, and sent unchanged by retry. A host that keeps it
can tell a second delivery of one message from a new one, and echoes it on its own copy so
the client swaps its copy for the host’s.
Inherited from
Section titled “Inherited from”rootRunId
Section titled “rootRunId”rootRunId: string;Defined in: react/src/client.ts:147
A requested destination, never permission. The host checks the principal and saved run.
text: string;Defined in: react/src/client.ts:70
Empty for a message that is only files.