vtortola.WebSockets.Rfc6455.WebSocketMessageWriteRfc6455Stream.Close C# (CSharp) Method

Close() public method

public Close ( ) : void
return void
        public override void Close()
        {
            if (!_isFinished)
            {
                _isFinished = true;
                _webSocket.Connection.WriteInternal(_webSocket.Connection.SendBuffer, _internalUsedBufferLength, true, _isHeaderSent, _messageType, ExtensionFlags);
                _webSocket.Connection.EndWritting();
            }
        }