NativeWebSocket
NativeWebSocket copied to clipboard
Added Options for WebSocket.
Added WebSocketOptions class to be able to add more ClientWebSocketOptions options like KeepAliveInterval and Credentials, and a little refactoring in WebSocket.
Why wrap constructor parameters into an options object?
Why wrap constructor parameters into an options object?
since ClientWebSocketOptions has a lot of options, I would have to add a constructor for each option. so with an options object I can add options without having to mess with the original websocket.cs.
ClientWebSocketOptions Classe https://docs.microsoft.com/en-us/dotnet/api/system.net.websockets.clientwebsocketoptions?view=net-6.0
Thank you for the info 👍