Skip to content

Event stream (Server-Sent Events)

GET/events

Requires: Cookie fret_session / Bearer

First event hello ({version}), then each event under its type, with as data {id, type, at, data}:

Type data
queue.state QueueState
queue.reordered {} (reload the dock)
package.updated Package
package.removed {id}
package.stored {id} (the shipment left the dock for the warehouse)
file.updated File
file.removed {id, packageId}
progress Progress (4 times per second during transfers)

A : ping comment every 25 s keeps the connection open.

Responses

200Event streamstring

text/event-stream

Built with Kiln