websocket-client icon indicating copy to clipboard operation
websocket-client copied to clipboard

Lacks more Options for Advanced Configuration.

Open jhunexjun opened this issue 5 years ago • 1 comments

I want to add more headers other than the current because the WebSocket server forced me to do so but this websocket client doesn't implement.

I think it would be better if the Options from here

var factory = new Func<ClientWebSocket>(() => new ClientWebSocket
{
    Options =
    {
        KeepAliveInterval = TimeSpan.FromSeconds(5),
        Proxy = ...
        ClientCertificates = ...
    }
});

is flexible. I think that's better like if it's a Dictionary.

jhunexjun avatar Apr 16 '20 05:04 jhunexjun

Hello @jhunexjun,

what exact feature are you missing? Here is an example of setting a header: https://github.com/Marfusios/websocket-client/blob/master/test_integration/Websocket.Client.Sample/Program.cs#L46

That ClientWebSocket is coming from .NET Core/Framework BCL.

Marfusios avatar Apr 16 '20 07:04 Marfusios