Python Forum
Python3 Django Socket IO Issue - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: Python3 Django Socket IO Issue (/thread-3256.html)



Python3 Django Socket IO Issue - charlesprince - May-09-2017

is there any socket io pakage for django python3, For chat application.


RE: Python3 Django Socket IO Issue - nilamo - May-09-2017

socket.io is two different things with the same name. There's a javascript library which uses websockets if available, and falls back to long polling if it isn't available. Then there's a node.js library which is just a websocket server. So you could look for a "socket.io" package for django... or you could look for a django websocket library.

As it turns out, django has an official websocket library called "channels": https://github.com/django/channels/
Instead of figuring out how to butcher socket.io to work with django, you'd probably have a much more enjoyable time using channels instead.