Centrifugo Channels

Queue events are published to the following channels:

Channel PatternDescription
streamer:{streamerId}-queueQueue-specific events
streamer:{streamerId}All events for the streamer (includes queue)

All events follow this JSON structure:

{
  "type": "event_type",
  "data": <payload or null>
}

Add Song to Queue

JSON Body

ParameterDescription
songIdThe ID of the song to add. This is required when "nonlistSong" is not provided
nonlistSongA "live-learn" request, replaces the "title" and "artist" of the song associated with "songId"
requestsAn array of requests consisting of "name" and "amount" properties
note (optional)A note that is only visible to the streamer or mods

Events

EventChannelPayloadDescription
queue_addqueueQueueDetailsThe full queue entry that was added

Update Song in Queue

JSON Body

ParameterDescription
idThe ID of the queue entity to update
songIdThe ID of the song to add. This is required when "nonlistSong" is not provided
nonlistSongA "live-learn" request, replaces the "title" and "artist" of the song associated with "songId"
requestsAn array of requests consisting of "name" and "amount" properties
note (optional)A note that is only visible to the streamer or mods

Events

EventChannelPayloadDescription
queue_updatequeuenullSignals that the queue has been modified

Remove Song from Queue

Events

EventChannelPayloadDescription
queue_removequeue{"id": <id>}The ID of the queue entry that was removed

Set Song in Queue as Played

Events

EventChannelPayloadDescription
queue_removequeue{"id": <id>}The queue entry is removed from the active queue
play_history_addplay_historynullSignals that a new play history entry was created

Reorder Queue

Events

EventChannelPayloadDescription
queue_updatequeuenullSignals that the queue order has been modified

Move Song to Saved Queue

Events

EventChannelPayloadDescription
queue_removequeue{"id": <id>}The queue entry is removed from the active queue
saved_queue_updatesaved-queuenullSignals that the saved queue has been modified