0
I am building a mobile application that uses the PubSub server using wamp protocol.
My server is written in AutobahnPython and my client is using AutobahnAndroid.
I want to host my Wamp server on Heroku, so I can enjoy free hosting while developing
without having to maintain Dynamic IP changes or having my computer run all the time.
The problem is when I upload my wamp server
just after the DEBUG log for “opening handshake received”
i get “fail connection [code = 3, reason = WebSockets connection lost” (in DEBUG log).
of course, no further usage of the connection object can be made after this error.
Also, I have tried to connect the server with browser wamp client, which
got “Error during WebSocket handshake: Sec-WebSocket-Protocol mismatch”
I have tested this server on my local network and it is working perfectly,
I have also configured port forwarding so I can test the connection from the mobile network
and it also worked.
Can someone please advise me how to further investigate this issue?
I would also like to know whether someone has successfully hosted
his wamp server on Heroku.
P.S.
I have enabled WebSockets lab on Heroku, and I am using their PORT environment variable
for the wamp server, and the client is configured to connect using port 80 (like Heroku's tutorial says)
thanks,
2From that error:
Sec-WebSocket-Protocol mismatch
im instantly thinking that the server is listening on port 80 and you are connecting on port 443, or vise versa – Panomosh – 2019-09-11T10:34:15.913