Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket: Queue Events #227

Open
AngelZatch opened this issue Dec 31, 2020 · 0 comments
Open

Socket: Queue Events #227

AngelZatch opened this issue Dec 31, 2020 · 0 comments
Assignees

Comments

@AngelZatch
Copy link
Member

AngelZatch commented Dec 31, 2020

Instead of sending the whole queue everytime something changes in it, tamarillo should send "Queue Events":

Events

Anatomy

Each event would be an object with two properties:

  • type : the type of what happened to the queue: a video has been added, moved to next, is playing, has been removed. It could have the following values: added, next, now, played, deleted
  • subject : the QueueItem | PlayingItem of the event
{
  "type": "add",
  "subject": {}
}

Front-end works

Instead of recieving the whole queue and re-rendering all items, only apply modifications recieved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant