The Free Software Media System - Server Backend & API
Add ProcessWebSocketRequest to IHttpListener
Claus Vium913e80fd5527
diff --git a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs b/Emby.Server.Implementations/HttpServer/HttpListenerHost.csindex 293b28e74b..d1b1b5b242 100644--- a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs+++ b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs@@ -756,11 +756,10 @@ namespace Emby.Server.Implementations.HttpServerpublic Task ProcessWebSocketRequest(HttpContext context){- // TODO- return ((WebSocketSharpListener)_socketListener).ProcessWebSocketRequest(context);+ return _socketListener.ProcessWebSocketRequest(context);}- //TODO Add Jellyfin Route Path Normalizer+ //TODO Add Jellyfin Route Path Normalizerprivate static string NormalizeEmbyRoutePath(string path){if (path.StartsWith("/", StringComparison.OrdinalIgnoreCase))diff --git a/Emby.Server.Implementations/HttpServer/IHttpListener.cs b/Emby.Server.Implementations/HttpServer/IHttpListener.csindex 1ef65d9d73..005656d2c1 100644--- a/Emby.Server.Implementations/HttpServer/IHttpListener.cs+++ b/Emby.Server.Implementations/HttpServer/IHttpListener.cs@@ -3,6 +3,7 @@ using System.Threading;using System.Threading.Tasks;using Emby.Server.Implementations.Net;using MediaBrowser.Model.Services;+using Microsoft.AspNetCore.Http;namespace Emby.Server.Implementations.HttpServer{@@ -30,5 +31,7 @@ namespace Emby.Server.Implementations.HttpServer/// Stops this instance./// </summary>Task Stop();++ Task ProcessWebSocketRequest(HttpContext ctx);}}