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

Add custom headers support to CONNECT frame #65

Merged
merged 2 commits into from Sep 4, 2020
Merged

Add custom headers support to CONNECT frame #65

merged 2 commits into from Sep 4, 2020

Conversation

ghost
Copy link

@ghost ghost commented Sep 4, 2020

No description provided.

@joffrey-bion
Copy link
Owner

joffrey-bion commented Sep 4, 2020

The ABI compat check broke to warn us of non-backwards-compat change on the binary level.

Because we're changing the ABI here (adding a param even with a default), we need to regenerate (and commit) the ABI description file. Please do that by running ./gradlew apiDump and commit the changed file.

@joffrey-bion
Copy link
Owner

Also, please add a corresponding test to check that custom headers are actually sent when provided

@@ -40,10 +40,10 @@ class StompClient(
* @throws ConnectionTimeout if this method takes longer than the configured
* [timeout][StompConfig.connectionTimeoutMillis] (as a whole for both WS connect and STOMP connect)
*/
suspend fun connect(url: String, login: String? = null, passcode: String? = null): StompSession {
suspend fun connect(url: String, login: String? = null, passcode: String? = null, customHeaders: Map<String, String> = emptyMap()): StompSession {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that I think of it, I might add custom headers for the websocket connection too later.
To avoid a backwards-incompatible change in the future, could you please rename this param customStompConnectHeaders.
Also please add a relevant sentence in the doc to explain what the param does.

Copy link
Author

@ghost ghost Sep 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your answer.
Learning every day 👍

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well thank you for the contribution! 😄

@joffrey-bion joffrey-bion merged commit 1ec659b into joffrey-bion:master Sep 4, 2020
@ghost
Copy link
Author

ghost commented Sep 4, 2020

Great, thank you for merging this and for your work.
I don't see things built that well every day, you really mastered kotlin and stomp 👍
Edit : Any chance to trigger a 0.30.2 build soon ?

@joffrey-bion
Copy link
Owner

joffrey-bion commented Sep 4, 2020

Any chance to trigger a 0.30.2 build soon ?

@Mostrapotski I just added one more test, and I will release immediately when the build is proved to succeed on all platforms.

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.

2 participants