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.
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)