Skip to content

Provides WebSocket Headers Settings #11

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

Merged
merged 1 commit into from
Jul 23, 2020

Conversation

Kumareshan009
Copy link
Contributor

@Kumareshan009 Kumareshan009 commented Feb 5, 2020

Iare trying to make wss connection using rsocket but couldnt find api to set the headers in the transport layer similar to java client transport layer. Hence I made changes in the WebsocketTransport layer to set the headers to ClientWebSocketOptions and able to communicate successfully.

@OlegDokuka OlegDokuka self-requested a review July 23, 2020 11:44
Copy link
Member

@OlegDokuka OlegDokuka left a comment

Choose a reason for hiding this comment

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

LGTM. Few minor changes requested

{
socket.Options.SetRequestHeader(key, headers[key]);
}
socket.Options.KeepAliveInterval = new TimeSpan(1, 1, 1);
Copy link
Member

Choose a reason for hiding this comment

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

should not be included in the PR since it is unrelated

socket.Options.SetRequestHeader(key, headers[key]);
}
socket.Options.KeepAliveInterval = new TimeSpan(1, 1, 1);
try
Copy link
Member

Choose a reason for hiding this comment

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

should not be wrapped in try-catch since the exception is swallowed silently

@OlegDokuka OlegDokuka changed the title Setting headers for Rsocket WSS connection Provides WebSocket Headers Settings Jul 23, 2020
@OlegDokuka OlegDokuka merged commit 9a9975f into rsocket:master Jul 23, 2020
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