The projections
A projection is how the interface contract is spoken, and there are two: local for programs and
http+ws for browsers. Each carries the whole contract, so a panel and a browser can do the same
things. local is protocol buffers carried by gRPC; http+ws is HTTP for requests and WebSockets for
what is live, over one origin. This page gives what decides that a projection exists, how each carries
the two traffic shapes, and what every projection carries alike.
What decides that a projection exists
A projection exists for a class of client that can speak it and cannot speak what is already carried.
| The client | Can open | Therefore speaks |
|---|---|---|
| a native program on the host, or a program reaching the host over the network | a socket the deployment names, carrying a typed binary protocol | local |
| a browser | HTTP, and a WebSocket upgrade over the same origin — and nothing else | http+ws |
A third value is added only by a change to the contract, and what it must name is the class of client that can speak it and cannot speak either of these.
local — the typed projection
Protocol buffers carried by gRPC, with both traffic shapes on one bidirectional connection.
| Shape | Carried by |
|---|---|
| control | requests on the connection, each answered and correlated by an identity the caller chose |
| live | the same connection, carrying events and the channel's own state as they are concluded |
| a stream's data | a path of its own (streams to clients), never the connection where the client can reach a path |
The name describes the ordinary binding and not a constraint: local on a routable address is the typed
projection reached over TCP, which is what a remote operator's native tool speaks.
http+ws — the browser projection
HTTP for the control shape and one WebSocket for the live shape, over one origin.
| Shape | Carried by |
|---|---|
| control | an HTTP request under the surface's base path, one answer per request |
| live | one WebSocket, carrying events and the channel's own state |
| a stream's data | one binary WebSocket per subscribed stream |
A browser cannot open a local socket, so an http+ws channel with no address is reachable only by a
client that can — a webview embedded in a host process, or something in front that forwards. It is not
refused.
The two axes are independent
The projection says what a client speaks; the address says how much protection the channel has. Neither implies the other.
| local socket | loopback | routable | |
|---|---|---|---|
local | the ordinary case: a native program on the host | the typed projection with no peer identity behind it | a native tool reaching the host over the network, with an authenticated transport and a credential |
http+ws | reachable only through something that can open a socket | a browser on the machine, on a port | a browser elsewhere, with an authenticated transport and a credential |
The class is computed from the address and never from the projection's name.
A stream's data is a path, not a projection
A flow that does not tolerate typed encapsulation gets a path of its own inside the channel it belongs to: a binary WebSocket in the browser projection, a transport the Core names in the typed one. It never gets a channel type of its own.
What every projection carries
A capability reachable over one projection and not the other is a defect, so each carries the whole contract.
| Every projection carries | So that |
|---|---|
| every operation, with the same subject and the same answer | adding a transport is a projection and never a redesign |
| the live shape without a poll | a display never shows a stopped instrument as running for the length of an interval |
| correlation as a field in the payload | the pairing of an answer to its request is visible, and the same in both projections |
| a stream's sequence, unchanged | a client can tell a lost frame from a reordered one |