-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API question #33
Comments
Hello @Aymsd , It looks like you are doing everything right. You can find the handshake with subprotocol example in this issue - #31
It is safe to call
What do you mean by "does not happen anymore." do you receive any errors? |
Thank you for the reply. Yes that issue does help. I cannot however put 5 arguments to the ENDPOINT_ASYNC macro. (I tried to copy it but I get: error: macro "ENDPOINT_ASYNC" passed 5 arguments, but takes just 3) (this might be just because i'm doing something stupid as I usually do..) But when I said the handshake does not happen anymore what I tried to say is that the connection fails without even getting a handshake from my app. To be more specific mainly my issue is that : 2- Client that does check for the subprotocol and this one raises the issue: When I do add it I get an issue Thank you so much again. |
Hello @Aymsd , It looks like you are doing everything right. Basically, your client should include
This looks correct. Please double-check the following:
|
Thank you for the reply. That makes sens. Thank you so much. |
In file: oatpp-websocket/Handshaker.hpp
Question
First of all I want to thank you for this amazing framework.
I have a small question regarding a use case of oat++ websocket.
in my case I'm trying to set up a websocket (with stomp) I have almost made it work but I'm still missing a header while doing the handshake.
The header I'm missing in this case is "Sec-WebSocket-Protocol" this one is expected from the client's side.
My issue is that I cannot add a header using the putHeader function. as soon as I do that the Handshake does not happen anymore.
Here is a sample of my controller. I'm guessing that I should not do it in an Action act(). But what would be the solution then please ?
`
`
Thank you so much in advance
The text was updated successfully, but these errors were encountered: