consolidate web socket onto one port

This commit is contained in:
Luke Pulverenti
2014-07-18 21:28:40 -04:00
parent ea559a6e27
commit bc657237aa
20 changed files with 1900 additions and 478 deletions

View File

@@ -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>

View File

@@ -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; }
}
}