-
Notifications
You must be signed in to change notification settings - Fork 54
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
Nats web socket opts improvements #623
Nats web socket opts improvements #623
Conversation
* Separate model NatsWebSocketOpts * Сalled NatsTlsOpts.AuthenticateAsClientAsync parameters before passing it to the ConfigureWebSocketOpts * RequestHeaders overwrite the header specified in ConfigureWebSocketOpts
* Added test
@caleblloyd can you take look? Did I interpret all the ideas you had in mind correctly? |
I will try to take a look tomorrow! |
Signed-off-by: Caleb Lloyd <[email protected]>
Here are some un-tested recommendations based on your PR: 4da55d4 Feel free to cherry-pick that commit into this branch if you think it looks good. The 2 main things left to do:
|
Thanks, I'll run some tests |
* Fence added, an occurs exceptions when add headers to blazor
@caleblloyd I checked when adding headers to Blazor, an error appears.
|
It’s more the TLS options I was worried about but maybe it is ok to throw there too? I don’t know how common it is for someone to configure an Isomorphic client for Blazor and .NET projects. |
This reverts commit e6b9d1c.
Signed-off-by: Caleb Lloyd <[email protected]>
Signed-off-by: Caleb Lloyd <[email protected]>
I think we don't need detect or ignore Blazor right now, since Headers would need to be explicitly added. I changed the TLS check to look for TLS Certs being explicitly added. Also added some tests for WebSocketSecure |
Signed-off-by: Caleb Lloyd <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, @mtmk can you take a quick look and merge if you're happy?
@caleblloyd Thanks for help :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thank you @caleblloyd and @Ivandemidov00 💯
* NatsWebSocketOpts improvements (nats-io#610) * Separate model NatsWebSocketOpts * Сalled NatsTlsOpts.AuthenticateAsClientAsync parameters before passing it to the ConfigureWebSocketOpts * RequestHeaders overwrite the header specified in ConfigureWebSocketOpts * NatsWebSocketOpts improvements (nats-io#610) * Added test * Build fixes * Build fixes * Build fixes * dotnet format * nats-io#623 reccomendations Signed-off-by: Caleb Lloyd <[email protected]> * NatsWebSocketOpts improvements (nats-io#610) * Fence added, an occurs exceptions when add headers to blazor * Revert "NatsWebSocketOpts improvements (nats-io#610)" This reverts commit e6b9d1c. * WebSocketSecure tests Signed-off-by: Caleb Lloyd <[email protected]> * fix format Signed-off-by: Caleb Lloyd <[email protected]> * simplify WebSocketOptionsTest Signed-off-by: Caleb Lloyd <[email protected]> --------- Signed-off-by: Caleb Lloyd <[email protected]> Co-authored-by: Ziya Suzen <[email protected]> Co-authored-by: Caleb Lloyd <[email protected]>
* Fixed consume pending message calculation * ServiceProvider callback for NATS DI configuration (nats-io#619) * Nats web socket opts improvements (nats-io#623) * Fix various disposable issues (nats-io#625) * Make NuidWriter public (nats-io#618) * NatsOpts.ConfigureWebSocketOpts callback handler (nats-io#605)
* Fixed consume pending message calculation (#626) * ServiceProvider callback for NATS DI configuration (#619) * Nats web socket opts improvements (#623) * Fix various disposable issues (#625) * Make NuidWriter public (#618) * NatsOpts.ConfigureWebSocketOpts callback handler (#605) * Simplified NATS client (#607) * Update docs (#595) * Add default timeout to initial commands (#594) * Extensive logging for reconnect debugging (#593) * Add clear next step navigation to API index doc (#592) * Add NATS client implementation (#589)
* Fixed consume pending message calculation (#626) * ServiceProvider callback for NATS DI configuration (#619) * Nats web socket opts improvements (#623) * Fix various disposable issues (#625) * Make NuidWriter public (#618) * NatsOpts.ConfigureWebSocketOpts callback handler (#605) * Simplified NATS client (#607) * Update docs (#595) * Add default timeout to initial commands (#594) * Extensive logging for reconnect debugging (#593) * Add clear next step navigation to API index doc (#592) * Add NATS client implementation (#589)
Resolves #610