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

[Issue]: not all clients receive websocket commands/messages #11755

Open
1 task done
jumoog opened this issue May 20, 2024 · 2 comments
Open
1 task done

[Issue]: not all clients receive websocket commands/messages #11755

jumoog opened this issue May 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jumoog
Copy link

jumoog commented May 20, 2024

Please describe your bug

I noticed that when I open Jellyfin Dashboard in one tab and start playing a video in another tab, the websocket url is always the same /socket?api_key=<api_key>&deviceId=<deviceId> for both tabs. When I send a message or command via the REST API, only the last connected websocket client receives the message. If I close the last open websocket connection, the old one gets all the messages again.

I think this is the reason why my plugin successfully sends messages and seek commands to skip the intro/credits and sometimes it does not work. In my opinion, the messages/commands should be sent to all affected websockets clients for the affected session.

Reproduction Steps

  • Open Jellyfin in two tabs and control the session via REST API.
  • Only the last connected client will receive commands and messages.
  • Close the last opened tab and repeat sending messages/commands.
  • Now the other tab receives everything.

Jellyfin Version

10.9.0

if other:

No response

Environment

- Virtualization: Docker
- Clients: Browser
- Browser: Firefox

Jellyfin logs

Nothing of relevance is happening in the logs.

FFmpeg logs

No response

Please attach any browser or client logs here

No response

Please attach any screenshots here

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jumoog jumoog added the bug Something isn't working label May 20, 2024
@jellyfin-bot
Copy link
Contributor

Hi, it seems like your issue report has the following item(s) that need to be addressed:

  • The format of the environment section has been altered from the template.

This is an automated message, currently under testing. Please file an issue here if you encounter any problems.

@jumoog
Copy link
Author

jumoog commented May 23, 2024

The problem is that you can watch multiple videos in the same session and you can no longer remotely control which video you want to control. This should only be an issue in the browser. But I don't know how for example the webOS app behaves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants