kerryjiang / WebSocket4Net

A popular .NET WebSocket Client
Apache License 2.0
764 stars 273 forks source link

main branch, in WebSocket.OpenAsync() method #179

Closed jason-shi closed 3 years ago

jason-shi commented 3 years ago
    public async ValueTask<bool> OpenAsync(CancellationToken cancellationToken = default)
    {
        ....
        var (key, acceptKey) = MakeSecureKey();
        await this.Channel.SendAsync((writer) => WriteHandshakeRequest(writer, key));
        ....
    }

   "this.Channel" the channel always be null when run the TestCode.
kerryjiang commented 3 years ago

How come the test case can go through?

kerryjiang commented 3 years ago

Ok, the test cases don't work correctly. Let me look into this problem.

kerryjiang commented 3 years ago

This bug has been fixed already.