Пример #1
0
        public IWebSocketWrapper Close()
        {
            var task = _clientWebSocket.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, "", _cancellationToken);

            task.Wait();
            return(this);
        }