aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/HttpServer/NativeWebSocket.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.Server.Implementations/HttpServer/NativeWebSocket.cs
parent44b12c0f9fc81dd10d6f655f341d7df28c5f3e20 (diff)
reduce byte conversions with alchemy web socket
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/NativeWebSocket.cs')
-rw-r--r--MediaBrowser.Server.Implementations/HttpServer/NativeWebSocket.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/NativeWebSocket.cs b/MediaBrowser.Server.Implementations/HttpServer/NativeWebSocket.cs
index 9ad617847..96f61912a 100644
--- a/MediaBrowser.Server.Implementations/HttpServer/NativeWebSocket.cs
+++ b/MediaBrowser.Server.Implementations/HttpServer/NativeWebSocket.cs
@@ -88,9 +88,9 @@ namespace MediaBrowser.Server.Implementations.HttpServer
break;
}
- if (OnReceiveDelegate != null)
+ if (OnReceiveBytes != null)
{
- OnReceiveDelegate(bytes);
+ OnReceiveBytes(bytes);
}
}
}
@@ -160,6 +160,8 @@ namespace MediaBrowser.Server.Implementations.HttpServer
/// Gets or sets the receive action.
/// </summary>
/// <value>The receive action.</value>
- public Action<byte[]> OnReceiveDelegate { get; set; }
+ public Action<byte[]> OnReceiveBytes { get; set; }
+
+ public Action<string> OnReceive { get; set; }
}
}