Skip to main content

Notifications

Notifications are sent from the server to connected clients to inform them of events.

Launching

running

Media started running on the server.

Readers

readers.added

A new reader was connected to the server.

Response

KeyTypeRequiredDescription
connectedbooleanYesWhether the reader is connected.
driverstringYesDriver type for the reader.
pathstringYesSystem path or identifier of reader.

readers.removed

A connected reader was disconnected from the server.

Response

KeyTypeRequiredDescription
connectedbooleanYesWhether the reader is connected.
driverstringYesDriver type for the reader.
pathstringYesSystem path or identifier of reader.

Tokens

tokens.added

A token was detected by a connected reader.

Response

KeyTypeRequiredDescription
typestringYesType of token (e.g., "nfc", "barcode").
uidstringYesUnique identifier of the token.
textstringNoText data associated with the token.
datastringNoRaw binary data of the token (base64 encoded).
scanTimestringYesISO 8601 timestamp when token was scanned.

tokens.removed

A token was removed from a connected reader.

Response

Returns null.

Media

media.started

New media was started on server.

Response

KeyTypeRequiredDescription
systemIdstringYesInternal ID of system associated with media.
systemNamestringYesDisplay name of system.
mediaPathstringYesPath to media file on server.
mediaNamestringYesDisplay name of media.

media.stopped

Media has stopped on server.

Response

Returns null.

media.indexing

Sent during media database generation to indicate indexing progress and completion status.

Parameters

KeyTypeRequiredDescription
existsbooleanYesTrue if media database exists
indexingbooleanYesTrue if indexing is currently in progress
totalStepsnumberNoTotal number of systems to process
currentStepnumberNoCurrent system being processed (1-based)
currentStepDisplaystringNoDisplay name of current system being processed
totalFilesnumberNoTotal number of media files discovered

Progress can be tracked using currentStep out of totalSteps systems processed.