aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Net/IWebSocket.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-05 17:34:46 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-05 17:34:46 -0400
commit98e7eeeff933d6f5ba18daecb3931337523dc01b (patch)
tree4ff3bec38ad3c9cffa74787aa51aa928ec3e2ab6 /MediaBrowser.Common/Net/IWebSocket.cs
parent44b12c0f9fc81dd10d6f655f341d7df28c5f3e20 (diff)
reduce byte conversions with alchemy web socket
Diffstat (limited to 'MediaBrowser.Common/Net/IWebSocket.cs')
-rw-r--r--MediaBrowser.Common/Net/IWebSocket.cs12
1 files changed, 9 insertions, 3 deletions
diff --git a/MediaBrowser.Common/Net/IWebSocket.cs b/MediaBrowser.Common/Net/IWebSocket.cs
index 805340b90..748c6642c 100644
--- a/MediaBrowser.Common/Net/IWebSocket.cs
+++ b/MediaBrowser.Common/Net/IWebSocket.cs
@@ -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
{
@@ -20,9 +20,15 @@ namespace MediaBrowser.Common.Net
/// Gets or sets the receive action.
/// </summary>
/// <value>The receive action.</value>
- Action<byte[]> OnReceiveDelegate { get; set; }
+ Action<byte[]> OnReceiveBytes { get; set; }
/// <summary>
+ /// Gets or sets the on receive.
+ /// </summary>
+ /// <value>The on receive.</value>
+ Action<string> OnReceive { get; set; }
+
+ /// <summary>
/// Sends the async.
/// </summary>
/// <param name="bytes">The bytes.</param>