WebSocket Root Name #607
Closed
CICADA-dev64bit
started this conversation in
General
Replies: 2 comments 3 replies
-
You can add a layout with two fallback handlers: var route1 = Layout.Create()
.Add(ServiceResource.From<...>())
.Add(socketController.create());
var layout = Layout.Create()
.Add("route1", route1); This way first the service, then the socket will try to handle the incoming request. In general, I would advice against such a setup as it is quite obscure what will happen for different requests. |
Beta Was this translation helpful? Give feedback.
3 replies
-
As this has been stale for some time I will close the discussion - feel free to re-open it if there is still something to clarify. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @Kaliumhexacyanoferrat. thanks for the quick mTLS support on the previous version of Genhtttp. kudos for that!
Right now im facing one more issue
We are creating server which should support both websocket and Rest API. And both needs to share same route name like example
http://localhost:8080/route1/ and ws://localhost:8080/route1/. But we are facing error while server starting itself. Our question is how to handle both websocket connection and Rest API connection with same route name, is that possible?
thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions