I am building mobile application that use 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 connection from mobile network
and it also worked.
Can someone please advise my 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)