[Modify] Add it
This commit is contained in:
parent
b70016c5af
commit
ee1c59a5f6
@ -1082,6 +1082,16 @@ namespace WebSocketSharp
|
|||||||
closer.BeginInvoke (e, send, receive, received, ar => closer.EndInvoke (ar), null);
|
closer.BeginInvoke (e, send, receive, received, ar => closer.EndInvoke (ar), null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void closeAsync (
|
||||||
|
PayloadData payloadData, bool send, bool receive, bool received
|
||||||
|
)
|
||||||
|
{
|
||||||
|
Action<PayloadData, bool, bool, bool> closer = close;
|
||||||
|
closer.BeginInvoke (
|
||||||
|
payloadData, send, receive, received, ar => closer.EndInvoke (ar), null
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
private bool closeHandshake (byte[] frameAsBytes, bool receive, bool received)
|
private bool closeHandshake (byte[] frameAsBytes, bool receive, bool received)
|
||||||
{
|
{
|
||||||
var sent = frameAsBytes != null && sendBytes (frameAsBytes);
|
var sent = frameAsBytes != null && sendBytes (frameAsBytes);
|
||||||
|
Loading…
Reference in New Issue
Block a user