A pushed fragment: identical to Fragment, named for SSE and
WebSocket use. Encode the result with formatEvent (SSE) or
formatPacket (WebSocket).
Remarks
Server-Sent Events and WebSockets carry the same envelope JSON as a fragment
fetch. The engine provides the encoders; the transport and the loop that
pushes updates are your server's. The Anza browser library has no built-in
listener: use EventSource / WebSocket and apply envelope.html to the
target yourself.
A pushed fragment: identical to Fragment, named for SSE and WebSocket use. Encode the result with formatEvent (SSE) or formatPacket (WebSocket).
Remarks
Server-Sent Events and WebSockets carry the same envelope JSON as a fragment fetch. The engine provides the encoders; the transport and the loop that pushes updates are your server's. The Anza browser library has no built-in listener: use
EventSource/WebSocketand applyenvelope.htmlto the target yourself.Example: Node.js SSE endpoint