Example Websocket with MAR
I am trying to migrate my older MWS application to new MWS. To do this, I understood that MAR is in charge of managing websockets. I am trying to create a server in MAR application, but when I try to open a port, it gives me some kind of error I can not find out.
Here there are some questions to run this websocket change:
- Is there any example for websockets in qtcloud? I found one example of websockets server in local computer and I did it and got it working, but when I deploy in qtcloud it gives me error.
- Which port should I use for websockets in the qtcloud?
- Should I open in SSL or in normal, or both are allowed? (this is, should I use wss or ws, or both are allowed?)
Thank you very much,
On the EDS server settings->webhooks I use https://mar-eu-1-bz0npm7b.qtcloudapp.com/v1/webhook_receivers/enginio on EDS , but return error 422, jason invalid. I think this erro is the new MWS serve on MAR. The EDS server is implementing payloads different than expected in the new MWS server.
On app c++ in Qt
i use URL_REQUEST = https://mar-eu-1-bz0npm7b.qtcloudapp.com/v1/websocket_uri.
But do you have to set in the environment on MAR, APP_DOMAIN = "Application URL" without "https://"
I hope I have helped, because information about the new MWS server are very obscure.