aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaus Vium <clausvium@gmail.com>2019-03-05 20:35:07 +0100
committerClaus Vium <clausvium@gmail.com>2019-03-05 20:35:07 +0100
commit913e80fd5527775ea71d6f9606f49c5494cb7b63 (patch)
treec6f3b3ab07dec06c31914d49dc13d2c35d7ca29b
parent9a4a01fb0e94d8ffbc00f5932f284f7faeb0ee69 (diff)
Add ProcessWebSocketRequest to IHttpListener
-rw-r--r--Emby.Server.Implementations/HttpServer/HttpListenerHost.cs5
-rw-r--r--Emby.Server.Implementations/HttpServer/IHttpListener.cs3
2 files changed, 5 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
index 293b28e74..d1b1b5b24 100644
--- a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
+++ b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
@@ -756,11 +756,10 @@ namespace Emby.Server.Implementations.HttpServer
public 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 Normalizer
private 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.cs
index 1ef65d9d7..005656d2c 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);
}
}