websocket-client
websocket-client copied to clipboard
Lacks more Options for Advanced Configuration.
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.
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.