Replies: 3 comments 6 replies
-
/cc @geoand (kotlin) |
Beta Was this translation helpful? Give feedback.
-
cc @mkouba |
Beta Was this translation helpful? Give feedback.
-
Just add the
This is not supported at the moment because we always handle a WebSocket as an HTTP Upgrade. I'm not sure if that's even feasible but I suppose that we would have to use the
What documentation do you mean? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
1. Receiving HTTP Headers
I want to receive the client's HTTP headers to use in the
onOpen
function. Here's an example of the header:2. Opening the website with the root URL
Currently, I need to use this URL to open the website:
But I want to change it so that the web landing page can be opened using the root URL like this:
I want to ues WebSocket and HTTP to work through the same endpoint
3. Setting up CORS
I’ve set up CORS according to the documentation, but it's still not working:
https://cors-test.codehappy.dev
repo:
https://github.com/rushmi0/quarkus-websocket/blob/main/src/main/kotlin/org/demo/Gateway.kt
https://github.com/rushmi0/quarkus-websocket/blob/main/src%2Fmain%2Fkotlin%2Forg%2Fdemo%2FServerInfo.kt
Beta Was this translation helpful? Give feedback.
All reactions