mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-14 14:16:35 +00:00
consolidate web socket onto one port
This commit is contained in:
@@ -10,12 +10,6 @@ namespace MediaBrowser.Common.Net
|
||||
/// </summary>
|
||||
public interface IServerManager : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether [supports web socket].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [supports web socket]; otherwise, <c>false</c>.</value>
|
||||
bool SupportsNativeWebSocket { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the web socket port number.
|
||||
/// </summary>
|
||||
@@ -28,11 +22,6 @@ namespace MediaBrowser.Common.Net
|
||||
/// <param name="urlPrefixes">The URL prefixes.</param>
|
||||
void Start(IEnumerable<string> urlPrefixes);
|
||||
|
||||
/// <summary>
|
||||
/// Starts the web socket server.
|
||||
/// </summary>
|
||||
void StartWebSocketServer();
|
||||
|
||||
/// <summary>
|
||||
/// Sends a message to all clients currently connected via a web socket
|
||||
/// </summary>
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Common.Net
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface IWebSocketServer
|
||||
/// </summary>
|
||||
public interface IWebSocketServer : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// Starts the specified port number.
|
||||
/// </summary>
|
||||
/// <param name="portNumber">The port number.</param>
|
||||
void Start(int portNumber);
|
||||
|
||||
/// <summary>
|
||||
/// Stops this instance.
|
||||
/// </summary>
|
||||
void Stop();
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when [web socket connected].
|
||||
/// </summary>
|
||||
event EventHandler<WebSocketConnectEventArgs> WebSocketConnected;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the port.
|
||||
/// </summary>
|
||||
/// <value>The port.</value>
|
||||
int Port { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user