Skip to content

Is it possible to use ws and http DownstreamScheme at the same time? #2153

Answered by raman-m
slaterx asked this question in Q&A
Discussion options

You must be logged in to vote

Hello Gleidson,
I'm curious about the questions you're asking us. What is your ultimate objective? Is there a reason you cannot deploy two instances on different ports?

Firstly, the WebSocket protocol is indeed based on HTTP.
Secondly, it's not advisable to mix multiple protocols associated with multiple ports of the same service instance.
Thirdly, Ocelot cannot transform WebSocket traffic to HTTP and vice versa due to its pipeline design restrictions, which only allow re-routing WebSocket traffic. However, in theory, a WebSocket to HTTP fallback is possible, but it would require specific settings.

Ocelot is currently capable of performing transformations for both HTTP/HTTPS schemes and W…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by raman-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Websockets Ocelot feature: Websockets Configuration Ocelot feature: Configuration Core Ocelot Core related or system upgrade (not a public feature)
2 participants
Converted from issue

This discussion was converted from issue #2152 on September 16, 2024 11:29.