Subscribing
Event reference
Use theSYNAPSE_REALTIME_EVENTS enum — never hardcode the string values.
Event payload
Every listener receives aSynapseRealTimeEventData object:
Streaming a message
A single assistant reply arrives as manyMESSAGE_CHUNK events followed by one END_OF_STREAM. Accumulate chunks, then finalize:
Next steps
Tool calls & elicitation
Handle
TOOL_CALL events — render inputs and send results back.
