NativeWebSocket icon indicating copy to clipboard operation
NativeWebSocket copied to clipboard

Added Options for WebSocket.

Open selzler opened this issue 2 years ago • 3 comments

Added WebSocketOptions class to be able to add more ClientWebSocketOptions options like KeepAliveInterval and Credentials, and a little refactoring in WebSocket.

selzler avatar Mar 13 '22 05:03 selzler

Why wrap constructor parameters into an options object?

XtroTheArctic avatar Apr 06 '22 22:04 XtroTheArctic

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

selzler avatar Apr 06 '22 22:04 selzler

Thank you for the info 👍

XtroTheArctic avatar Apr 06 '22 23:04 XtroTheArctic