|
|
|
|
@ -2892,6 +2892,29 @@ namespace WebSocketSharp
|
|
|
|
|
/// the send is complete. A <see cref="bool"/> passed to this delegate will be
|
|
|
|
|
/// <c>true</c> if the send has done with no error.
|
|
|
|
|
/// </param>
|
|
|
|
|
/// <exception cref="InvalidOperationException">
|
|
|
|
|
/// The current state of the connection is not Open.
|
|
|
|
|
/// </exception>
|
|
|
|
|
/// <exception cref="ArgumentNullException">
|
|
|
|
|
/// <paramref name="stream"/> is <see langword="null"/>.
|
|
|
|
|
/// </exception>
|
|
|
|
|
/// <exception cref="ArgumentException">
|
|
|
|
|
/// <para>
|
|
|
|
|
/// <paramref name="stream"/> cannot be read.
|
|
|
|
|
/// </para>
|
|
|
|
|
/// <para>
|
|
|
|
|
/// -or-
|
|
|
|
|
/// </para>
|
|
|
|
|
/// <para>
|
|
|
|
|
/// <paramref name="length"/> is less than 1.
|
|
|
|
|
/// </para>
|
|
|
|
|
/// <para>
|
|
|
|
|
/// -or-
|
|
|
|
|
/// </para>
|
|
|
|
|
/// <para>
|
|
|
|
|
/// No data could be read from <paramref name="stream"/>.
|
|
|
|
|
/// </para>
|
|
|
|
|
/// </exception>
|
|
|
|
|
public void SendAsync (Stream stream, int length, Action<bool> completed)
|
|
|
|
|
{
|
|
|
|
|
if (_readyState != WebSocketState.Open) {
|
|
|
|
|
|