Wire frames
The frame types super-line puts on the client↔server wire, each tagged by a short t. You never write these by hand — the transport carries them and the client/server SDKs encode and decode them — but they're useful when reading a Control Center live feed or debugging a custom transport.
Client → server
t | Frame | Carries |
|---|---|---|
req | request | a request call + correlation id |
sub | subscribe | opt into a topic |
unsub | unsubscribe | drop a topic subscription |
sres | server-request response | the client's reply to a server-request |
serr | server-request error | the client's error reply to a server-request |
ping | keepalive | liveness probe |
csub | collection subscribe | open a row-set for a query |
cuns | collection unsubscribe | close a row-set |
cbat | collection batch | an atomic row write batch |
cdopen | CRDT open | open a document by id |
cdwr | CRDT write | a document delta |
cdclose | CRDT close | close a document handle |
Server → client
t | Frame | Carries |
|---|---|---|
res | response | a request's typed reply |
err | error | a request's SuperLineError |
evt | event | a pushed event |
env | env push | the connection's current env, full-value replace; seeded at connect, re-sent on every setEnv |
pub | publish | a topic publish to subscribers |
sreq | server-request | the server calling the client, awaiting a reply |
pong | keepalive | reply to ping |
cchg | collection change | a row insert / update / delete for a subscribed row-set |
cdchg | CRDT change | a merged document delta |
cddel | CRDT delete | a document was deleted |
Frame shapes are defined in @super-line/core (packages/core/src/wire.ts) and exported as PROTOCOL. See the API reference for the exact payloads.