Skip to content

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