Wamp server on Heroku Hosting

by Emily Williamson   Last Updated September 11, 2019 10:01 AM

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,



Related Questions


How to point Wamp Server to Domain Name?

Updated May 21, 2019 08:01 AM



Datacenters and hosting VMs

Updated October 12, 2017 10:01 AM

Hosting a mobile app and web

Updated September 04, 2015 04:00 AM