mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 07:10:45 +00:00
reduce byte conversions with alchemy web socket
This commit is contained in:
parent
44b12c0f9f
commit
98e7eeeff9
9 changed files with 175 additions and 35 deletions
|
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue