Capabilities ​
@anvia/server exposes two related transport layers:
- Client protocol:
createClientStreamResponseandresumeClientStreamResponsevalidate and frame@anvia/clientevents. - Generic events:
createEventStreamResponseandresumeEventStreamResponsetransport application-defined values. - Encoders:
createJsonlStreamandcreateSseStreamreturn byte streams. - Resume:
createResumableStream,resumeStreamEvents,createMemoryResumableStreamStore, andResumableStreamStoreprovide generic persistence contracts.
Response helpers set no-cache, keep-alive, proxy-buffering, and format-appropriate content-type headers unless the application overrides them.
The package does not own model execution, authentication, authorization, CORS, CSRF protection, compression, durable production storage, or background-job lifecycle.