mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Add ProcessWebSocketRequest to IHttpListener
This commit is contained in:
parent
9a4a01fb0e
commit
913e80fd55
@ -756,11 +756,10 @@ namespace Emby.Server.Implementations.HttpServer
|
|||||||
|
|
||||||
public Task ProcessWebSocketRequest(HttpContext context)
|
public Task ProcessWebSocketRequest(HttpContext context)
|
||||||
{
|
{
|
||||||
// TODO
|
return _socketListener.ProcessWebSocketRequest(context);
|
||||||
return ((WebSocketSharpListener)_socketListener).ProcessWebSocketRequest(context);
|
|
||||||
}
|
}
|
||||||
//TODO Add Jellyfin Route Path Normalizer
|
|
||||||
|
|
||||||
|
//TODO Add Jellyfin Route Path Normalizer
|
||||||
private static string NormalizeEmbyRoutePath(string path)
|
private static string NormalizeEmbyRoutePath(string path)
|
||||||
{
|
{
|
||||||
if (path.StartsWith("/", StringComparison.OrdinalIgnoreCase))
|
if (path.StartsWith("/", StringComparison.OrdinalIgnoreCase))
|
||||||
|
@ -3,6 +3,7 @@ using System.Threading;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Emby.Server.Implementations.Net;
|
using Emby.Server.Implementations.Net;
|
||||||
using MediaBrowser.Model.Services;
|
using MediaBrowser.Model.Services;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
|
|
||||||
namespace Emby.Server.Implementations.HttpServer
|
namespace Emby.Server.Implementations.HttpServer
|
||||||
{
|
{
|
||||||
@ -30,5 +31,7 @@ namespace Emby.Server.Implementations.HttpServer
|
|||||||
/// Stops this instance.
|
/// Stops this instance.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Task Stop();
|
Task Stop();
|
||||||
|
|
||||||
|
Task ProcessWebSocketRequest(HttpContext ctx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user