Skip to content

Conversation

@BrennanConroy
Copy link
Member

Forward port of #30482 with the additional WebSocket check.

@BrennanConroy BrennanConroy added the area-signalr Includes: SignalR clients and servers label Mar 2, 2021
@BrennanConroy BrennanConroy added this to the 6.0-preview3 milestone Mar 2, 2021
@BrennanConroy BrennanConroy requested a review from halter73 as a code owner March 2, 2021 19:03
@BrennanConroy BrennanConroy added the feature-client-java Related to the SignalR Java client label Mar 2, 2021
if (this.skipNegotiate) {
if (this.transportEnum != TransportEnum.WEBSOCKETS) {
throw new RuntimeException("Negotiation can only be skipped when using the WebSocket transport directly with '.withTransport(TransportEnum.WEBSOCKETS)' on the 'HubConnectionBuilder'.");
}
Copy link
Member

Choose a reason for hiding this comment

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

You must have removed this from #30482 after I approved it. Could it break any previously-working code?

Copy link
Member Author

@BrennanConroy BrennanConroy Mar 2, 2021

Choose a reason for hiding this comment

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

Yeah, if you didn't specify a transport and used skip negotiate, it would work because WebSockets will be used first. So adding that check would have broken people that had it working but didn't explicitly specify the transport.

@BrennanConroy BrennanConroy merged commit 2623693 into main Mar 2, 2021
@BrennanConroy BrennanConroy deleted the brecon/skip2 branch March 2, 2021 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-signalr Includes: SignalR clients and servers feature-client-java Related to the SignalR Java client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants