@appport/transport-http
v1.0.1
Published
HTTP AppPort transport.
Readme
@appport/transport-http
The HTTP transport.
import { createHttpTransport } from "@appport/transport-http";
const transport = createHttpTransport({ url: "/appport", sessionId });One endpoint carries every capability:
- requests —
POST /appportwith one envelope in, one envelope out. - streams — the same POST, answered as
application/x-ndjson: one envelope per line,stream.startthroughstream.end. Cancelling aborts the request. - events —
GET /appport/eventsas Server-Sent Events, each frame carrying one AppPort event envelope.
So a plain HTTP deployment reaches conformance level 3 without a second protocol.
Transport status and application status stay separate: the client reads the
envelope, not the status code. Chunk sequence numbers are checked, and an
out-of-order chunk fails the stream with STREAM_ERROR.
