Forums

Websocket using django channels

Hey guys, I 'm using https://github.com/andrewgodwin/channels.

Custom manage.py command seems to have been integrated ok, as my error log contains the same output I get on localhost...

2016-02-23 20:40:36,646 :Starting new HTTPS connection (1): api.reddit.com
2016-02-23 20:45:49,341 :Resetting dropped connection: api.reddit.com
2016-02-23 20:45:49,343 :Starting new HTTPS connection (2): api.reddit.com

Alas, I get the following error when I load the page Firefox can't establish a connection to the server at wss://mitsest.pythonanywhere.com/.

socket = new WebSocket("wss://mitsest.pythonanywhere.com/"),

I tried both wss and ws. More specifically

http, ws -> same error

http, wss -> same error

https, wss -> same error

https, ws -> error changes (SecurityError: The operation is insecure.)

You can check it out yourselves at : https://mitsest.pythonanywhere.com/

Am I missing anything? Cheers!

Hi mitsest,

Unfortunately we don't support web sockets at the moment.

Conrad

Ah, I see. Any plans for websocket support then? :)

Thanks for the fast reply

We do want to support it, but no concrete plans as of yet :(

do you know of any other hosting services that would support it thanks

You should probably do your own research for that.

@pycharm

Heh it's like asking a mcdonalds employee where to buy a whopper ;)

i hate websocket

Just spotted this topic, still no concrete plans for django-channels support? Also, I wonder how far can I go (as a user) in my virtual environment: can I try to install asgi/redis/daphne in my shell and try to make my own custom support for a little websocket-based app? Just trying my best to stay on pythonanywhere :-)

no concrete plans for web socket support yet. you can however try to use some third party services like pusher, pubnub etc with pythonanywhere to get a sockets solution working.

you can install redis-lite but not actual redis. not sure about the other ones.

Tell me, are you already supporting webconets?

I have a chatbot project written on a python in django, I'm trying to deploy it on your server, but I'm getting : WebSocket connection to 'ws: //mbeliakouski.pythonanywhere.com/chat/' failed: Error during WebSocket handshake: Unexpected response code: 404

Nope- again, no plans for web sockets yet, but using third party services like pusher/pubnub together with PythonAnywhere will give you a websocket solution that should work.

do you support django-channels now?

No, not yet.

And do you support them now?

No, not yet.

Do you support it now?

DonĀ“t stay behind guys. Come on!

We're working towards it, but it is a very large change so it's not something we can do quickly.

still not supporting?

It's still on the list. We'll add something here when it is supported.

sorry i need channels

Do you support it now?

No, not yet.

How about now?

No

Dear M.Conrad pythonanywhere supports web sockets at the moment?

Hi @xhome, nothing's changed.

Please we want websockets!

Noted. Thanks.

hey is it supported now

Not yet

Now to you support websockets. we neeeed it!!

Noted!

Please make it work

We will do it.

Do you support it now?

No

hello, still not supported?

We'd definitely update this thread when it will be supported.

hello, still not supported?

No

You have been working on it for 4 years, can you give a date?

No, we can not give a date.

What is the date please? thank you.

i think the last Thursday of the month that never comes LUL

We are working on it right now, but we don't have a specific date for release.

Just wanted to add my voice to this thread. I would also like to use channels

Noted!

+1... would love Django-Channels support on PythonAnywhere!!

Not yet but on the way.

How about now? Do y'all support WebSockets now?

Not yet but on the way.

I know ETA doesn't exist, but I wonder websocket will be available around March next year?

We can't say for sure.