|
@@ -1,7 +1,7 @@
|
|
|
-using System;
|
|
|
+using MediaBrowser.Model.Net;
|
|
|
+using System;
|
|
|
using System.Threading;
|
|
|
using System.Threading.Tasks;
|
|
|
-using MediaBrowser.Model.Net;
|
|
|
|
|
|
namespace MediaBrowser.Common.Net
|
|
|
{
|
|
@@ -54,24 +54,6 @@ namespace MediaBrowser.Common.Net
|
|
|
Task SendAsync(byte[] buffer, WebSocketMessageType type, CancellationToken cancellationToken);
|
|
|
}
|
|
|
|
|
|
- /// <summary>
|
|
|
- /// Class WebSocketMessage
|
|
|
- /// </summary>
|
|
|
- /// <typeparam name="T"></typeparam>
|
|
|
- public class WebSocketMessage<T>
|
|
|
- {
|
|
|
- /// <summary>
|
|
|
- /// Gets or sets the type of the message.
|
|
|
- /// </summary>
|
|
|
- /// <value>The type of the message.</value>
|
|
|
- public string MessageType { get; set; }
|
|
|
- /// <summary>
|
|
|
- /// Gets or sets the data.
|
|
|
- /// </summary>
|
|
|
- /// <value>The data.</value>
|
|
|
- public T Data { get; set; }
|
|
|
- }
|
|
|
-
|
|
|
/// <summary>
|
|
|
/// Class WebSocketMessageInfo
|
|
|
/// </summary>
|