4

I am looking to host a basic Websocket server.

The code I want to see running is : FastFlicker

Do you know how and where I can host this application online?

2
  • WebSocket Demo using Google App Engine Managed VMs and a Python runtime with the Tornado framework gae-websockets-python-demo Commented Jun 15, 2016 at 14:48
  • Perhaps this answer at stackoverflow.com/a/9501039/2315612 applies (disclaimer: never tried this myself); it mentions Heroku next to Amazon EC and Rackspace. Commented Jun 17, 2016 at 21:35

2 Answers 2

5

PythonAnywhere dev here. Unfortunate we can't host websocket-based apps on our site right now. The toggle you spotted enables/disables websockets for our in-browser consoles, it's not related to running your own websocket server.

I've added an upvote for websockets to our own issue tracker, but for now you'll have to use a different service :-(

Sign up to request clarification or add additional context in comments.

Comments

1

Your solution is OpenShift, even with the free plan you can host FastFlicker. Click Add Application, choose the good cartridges (Python 2.7).

Then use your gitHub repo url to get the source.

Once the application is running, you need to SSH it to change the address and the port (see this Post). To be able to ssh you need first to generate a ssh key and to add it in setting on the website

Ok, now kill all processes that uses your port. (lsof -i :8080)

Start your application and now it's working! (It is in app-deployments/current/repo/ for me, then python FastFlicker.py &)

It is currently hosted here : ws://main-fastflicker.rhcloud.com:8000/ And to test it, you know you can use this generic client..

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.