Forums

Websocket in pythonanywhere

Is there websocket server available in pythonanywhere now?So that I can host a website with chat application using websocket technology.

Not at the moment. We have plans to provide that sort of thing but they're still in the early stages and we don't know when it will be available.

I see mod-pywebsocket on the available modules list. Any news on the websockets?

Ow, and here it reads

While searching for a simpler solution, I found out that uWSGI offers websockets right out of the box. With Redis as a message queue, and a few lines of Python code, one can bidirectionally communicate with any WSGI based framework, for instance Django.

Now i'm not a Django user, but a Web2py user but maybe this can help you guys getting websockets up and running. There are plenty of people asking for it and I too would love to see websockets as an option.

We know that uwsgi supports websockets and it has for quite some time. Unfortunately, it's not that simple and will require a lot of work on our part to implement.

I won't hold my breath :) Do you know of any way to work around it by using another server? Do you know of anyone with experience with that? I'm eager to learn if that's a viable option.

I suppose you could put a simple websockets-to-http converter on the other server, but that would be pretty slow and way more complicated than simply putting the entire service on the other server to start with.

2018 Update by a staff member :- https://www.pythonanywhere.com/forums/topic/1034/#id_post_50269 Nothing new. No Support Yet.

Hello, I'm currently engaged in Python Flask WebSocket development. Could you please confirm whether PythonAnywhere supports websockets in the year 2024?

We are in the middle of beta tests. If you want to participate email us at support@pythonanywhere.com

Hi is support for WebSocket's enabled?

We are in the middle of beta tests. If you want to participate email us at support@pythonanywhere.com