Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Options for WebSocket. #63

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Added Options for WebSocket. #63

wants to merge 2 commits into from

Conversation

selzler
Copy link

@selzler selzler commented Mar 13, 2022

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

@XtroTheArctic
Copy link

Why wrap constructor parameters into an options object?

@selzler
Copy link
Author

selzler commented Apr 6, 2022

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

@XtroTheArctic
Copy link

Thank you for the info 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants