Exemplo n.º 1
0
        public async Task <IWebSocketFrame> ReceiveFrameAsync(CancellationToken cancellationToken)
        {
            var frame = new WebSocketServerFrame();
            await frame.ReadFromAsync(_tcp, cancellationToken);

            return(frame);
        }
 public async Task<IWebSocketFrame> ReceiveFrameAsync(CancellationToken cancellationToken)
 {
     var frame = new WebSocketServerFrame();
     await frame.ReadFromAsync(_tcp, cancellationToken);
     return frame;
 }