public SendClose ( ushort statusCode, string reason = null ) : void | ||
statusCode | ushort | |
reason | string | |
return | void |
public void SendClose(ushort statusCode=0, string reason=null)
{
lock (stateLock)
{
if (sentClose)
{
return;
}
sentClose = true;
}
Write(OpCode.Close, FrameEncoder.GetClosePayload(statusCode, reason));
}