Skip to content

Limitations

What ankka-surface does not do. Each item says what happens instead.

No release yet

Neither half is published. The Scala module is taken from ~/.ivy2/local after publishLocal, and the device package by a file: dependency on a built checkout, as Your first surface does. The API is provisional until a second consumer has used it.

One ankka version

The Scala module is built against ankka 0.16.3. A service on another ankka version builds the module against its own with sbt -Dankka.version=<version>.

Scala only on the server

The server half is a Scala library on ankka's SDK, so a consumer's service is a JVM service in Scala. A renderer in any language can speak the HTTP API; the device package is TypeScript.

The owner is a name

The library holds the owner's name and nothing else. It does not authenticate the caller or compare them with a surface's owner: the endpoint's one ACL admits a caller to every surface or to none. A consumer that needs per-owner access puts that rule in front of the endpoint, as Serve surfaces describes.

One person, many devices

A surface is designed for one person steering it from many devices. Two people steering one surface at once both succeed: each move is applied on top of whatever the last one left, and nothing tells either person the other is there. The focus is one value per surface, from whichever device set it last.

Server-sent events down, HTTP up

A device streams over server-sent events and steers with HTTP requests. There is no socket.

The interpreter is a plain function

interpret is called on the request and returns its answer directly, so an interpreter that calls a model or another service holds the request until it answers. It is given the surface as it stood when the say arrived; a move another device makes between that read and the say's own move is not seen by the interpreter.

The listing lags

GET /?owner=<owner> reads the rows view, so a surface opened a moment ago may be missing from it and the rows in it may be behind the entity. GET /{id} is always current.

Focus outlives its surface

Closing a surface does not clear its focus. A surface opened again under the same id starts with the last focus it had. A device clears it with an empty focus before closing.

A vocabulary change does not rewrite the journal

The vocabulary checks commands, not events. A word removed from the vocabulary stays on any surface that already holds it until a move replaces it.

No renderer and no ear

The device package ships neither. A renderer and a speech recogniser are the consumer's.