diff options
| author | Vasily <JustAMan@users.noreply.github.com> | 2020-05-14 18:49:44 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-14 18:49:44 +0300 |
| commit | 5ce008e02f0500c5d0298067fa401a740742e3f0 (patch) | |
| tree | 9217bb9d15df7f1a516afcbc2f531bbc35161a53 /Emby.Server.Implementations/Net/IWebSocket.cs | |
| parent | 11dd96f6c715b0f701903e636f08ee910c9a08eb (diff) | |
| parent | 2e09311a93cbf7b4d0629e058974a84e70c4b800 (diff) | |
Merge pull request #2162 from Bond-009/websocket
Rewrite WebSocket handling code
Diffstat (limited to 'Emby.Server.Implementations/Net/IWebSocket.cs')
| -rw-r--r-- | Emby.Server.Implementations/Net/IWebSocket.cs | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/Emby.Server.Implementations/Net/IWebSocket.cs b/Emby.Server.Implementations/Net/IWebSocket.cs deleted file mode 100644 index 4d160aa66..000000000 --- a/Emby.Server.Implementations/Net/IWebSocket.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using System.Net.WebSockets; -using System.Threading; -using System.Threading.Tasks; - -namespace Emby.Server.Implementations.Net -{ - /// <summary> - /// Interface IWebSocket - /// </summary> - public interface IWebSocket : IDisposable - { - /// <summary> - /// Occurs when [closed]. - /// </summary> - event EventHandler<EventArgs> Closed; - - /// <summary> - /// Gets or sets the state. - /// </summary> - /// <value>The state.</value> - WebSocketState State { get; } - - /// <summary> - /// Gets or sets the receive action. - /// </summary> - /// <value>The receive action.</value> - Action<byte[]> OnReceiveBytes { get; set; } - - /// <summary> - /// Sends the async. - /// </summary> - /// <param name="bytes">The bytes.</param> - /// <param name="endOfMessage">if set to <c>true</c> [end of message].</param> - /// <param name="cancellationToken">The cancellation token.</param> - /// <returns>Task.</returns> - Task SendAsync(byte[] bytes, bool endOfMessage, CancellationToken cancellationToken); - - /// <summary> - /// Sends the asynchronous. - /// </summary> - /// <param name="text">The text.</param> - /// <param name="endOfMessage">if set to <c>true</c> [end of message].</param> - /// <param name="cancellationToken">The cancellation token.</param> - /// <returns>Task.</returns> - Task SendAsync(string text, bool endOfMessage, CancellationToken cancellationToken); - } -} |
