Skip to main content
The local API exposes a WebSocket endpoint for playback updates.

Endpoint

ws://127.0.0.1:39031/ws?access_token=<token> Requirements:
  • Token must be valid and active
  • Token must include read permission
  • Connection must originate from localhost
If auth fails, the upgrade is rejected with 401.

Initial events after connect

When a connection is accepted, Velora sends these events immediately:
  • connected
  • track_changed
  • playback_state_changed

Runtime events

As playback changes, Velora broadcasts:
  • track_changed
  • playback_state_changed
Event envelope format:
Playback state event example:

JavaScript example