[Modify] Add it

This commit is contained in:
sta 2016-12-16 16:58:34 +09:00
parent b70016c5af
commit ee1c59a5f6

View File

@ -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);