Python Forum
Thread Rating:
  • 3 Vote(s) - 2.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python3 Django Socket IO Issue
#1
is there any socket io pakage for django python3, For chat application.
Reply
#2
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  help on django issue jip31 1 1,848 May-20-2021, 03:42 PM
Last Post: jip31
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,318 Jun-30-2019, 12:21 AM
Last Post: scidam
  Django Rest Framework URL issue marcus 0 2,507 Feb-07-2018, 10:31 PM
Last Post: marcus
  Django with socket-io charlesprince 1 3,399 May-24-2017, 05:26 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020