element_51.protocolΒΆ

Messages between Python and the browser, as JSON.

Classes

Ack(*[, op])

Python confirms the edit with this request id.

EditRequest(*[, op])

The browser asks Python to confirm an edit it already applied.

JobRefusal(*[, op])

Python refuses a start or a stop.

JobUpdate(*, node, state[, step, steps, ...])

Python tells every page how one job stands (the Rust JobUpdate).

JobView(*, node, state[, step, steps, ...])

How one job stands, as a snapshot lists it.

LinkedSeries(*, node, port, series)

A series now reaching an input of a chart node, from a running job.

PngChartRequest(*[, op])

The browser asks for a PNG file of a chart, with the lines it shows.

PngPictureRequest(*[, op])

The browser asks for a PNG file of a picture.

PngReply(*[, op, data, reason])

Python answers a PNG request: the file, or why there is none.

Reject(*[, op])

Python refuses the edit with this request id.

RunRequest(*[, op])

The browser asks Python to run the graph.

Snapshot(*[, op, version, theme_changes, jobs])

The whole state, sent when a browser connects.

SourceReply(*[, op, source, reason])

Python answers a SourceRequest: the code, or why there is none.

SourceRequest(*[, op])

The browser asks for the source code of one node's type.

StartRequest(*[, op])

The browser asks Python to start the job of one node.

StopRequest(*[, op])

The browser asks Python to stop the job of one node.