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)
|
||||
{
|
||||
// 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))
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user