[PR #16109] [MERGED] Fix SessionInfoWebSocketListener not using SessionInfoDto #14522

Closed
opened 2026-02-07 07:31:10 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/16109
Author: @nielsvanvelzen
Created: 1/25/2026
Status: Merged
Merged: 1/27/2026
Merged by: @nielsvanvelzen

Base: release-10.11.zHead: ws-session-info-dto-backport


📝 Commits (1)

  • d41e302 Fix SessionInfoWebSocketListener not using SessionInfoDto

📊 Changes

3 files changed (+18 additions, -7 deletions)

View changed files

📝 Emby.Server.Implementations/Session/SessionManager.cs (+2 -1)
📝 Jellyfin.Api/WebSocketListeners/SessionInfoWebSocketListener.cs (+9 -6)
📝 MediaBrowser.Controller/Session/ISessionManager.cs (+7 -0)

📄 Description

Changes

Properly map SessionInfo to its DTO equivalent for WebSocket messaging to avoid leaking internal properties. The SessionsMessage type already specifies it uses SessionInfoDto so clients should already expect this type, but it wasn't actually used in the server implementation.

Found this while researching WebSocket behavior for the TypeScript SDK.

Issues


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/16109 **Author:** [@nielsvanvelzen](https://github.com/nielsvanvelzen) **Created:** 1/25/2026 **Status:** ✅ Merged **Merged:** 1/27/2026 **Merged by:** [@nielsvanvelzen](https://github.com/nielsvanvelzen) **Base:** `release-10.11.z` ← **Head:** `ws-session-info-dto-backport` --- ### 📝 Commits (1) - [`d41e302`](https://github.com/jellyfin/jellyfin/commit/d41e302418120c06602aa03ed1f0ca4c481fab2a) Fix SessionInfoWebSocketListener not using SessionInfoDto ### 📊 Changes **3 files changed** (+18 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `Emby.Server.Implementations/Session/SessionManager.cs` (+2 -1) 📝 `Jellyfin.Api/WebSocketListeners/SessionInfoWebSocketListener.cs` (+9 -6) 📝 `MediaBrowser.Controller/Session/ISessionManager.cs` (+7 -0) </details> ### 📄 Description **Changes** Properly map SessionInfo to its DTO equivalent for WebSocket messaging to avoid leaking internal properties. The `SessionsMessage` type already specifies it uses SessionInfoDto so clients should already expect this type, but it wasn't actually used in the server implementation. Found this while researching WebSocket behavior for the TypeScript SDK. **Issues** <!-- Tag any issues that this PR solves here. ex. Fixes # --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:31:10 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#14522