Questions tagged [django-socketio]

Django-socketio is a package that allows for Websocket integration with Django using gevent and Socket.IO.

18 questions
5
votes
2 answers

Django - Real Time Notification System

I am new to Django & building my own application. I want to integrate notification system (Personal, Group Level & Broadcast) from server to end user. whenever he logs into his account, notification bar displays like in facebook. Currently Using:…
4
votes
2 answers

django socketio - SocketIOHandler error

i can't use django-socketio, i get this error: AttributeError: 'SocketIOHandler' object has no attribute 'response_headers_list' Terminal: Traceback (most recent call last): File…
Mirza Delic
  • 4,119
  • 12
  • 55
  • 86
2
votes
0 answers

Django - HTTP and WebSockets

We have an existing large Django 1.11 & Django-rest-framework application served by wsgi. We noticed that we might want to use a WebSocker for some requests (for example: get all running tasks - live updating) There is already a GET URL for that:…
2
votes
0 answers

socketio send message from server(django-socketio)

I use django-socketio library. In some view, i want send message for all clients. But when i use the follow code: from django_socketio import broadcast def some_view(request): data = {"message": "Some message"} broadcast(data) return…
Arti
  • 7,356
  • 12
  • 57
  • 122
1
vote
1 answer

Call js function in python to use document.getElementById

I've recently asked about a way to call a js function in python. People gave me advice such as using js2py, or pyv8, but the problem is that it does not allow me to use the following js command: document.getElementById("example"); So my question…
souki
  • 1,305
  • 4
  • 23
  • 39
1
vote
0 answers

Socketio error : "no client on the channel"

I'm trying to call a socketio function from python, but I'm getting the following error message : NoSocket: There are no clients on the channel: global As I've just started using socketio, I'm not familiar with it, so I would like to know why am I…
souki
  • 1,305
  • 4
  • 23
  • 39
1
vote
1 answer

Implementing django-socketio iOS client

I want to make a chat app using Django in iOS. The server-side socket communication method that I've chosen is django-socketio because it integrates well with django. So my problem is selecting a way to implement the client side on iOS. All the…
raj
  • 187
  • 1
  • 11
1
vote
1 answer

django-socketio: No attribute 'response_headers_list'

I'm not able to run the django-socketio example project. The error is: AttributeError: 'SocketIOHandler' object has no attribute 'response_headers_list' trying to establish the socket connection. According to this issue it seems I have to…
arthur.sw
  • 11,052
  • 9
  • 47
  • 104
1
vote
0 answers

Django-SocketIO: Key Error at /socket.io/xhr-polling//

I have setup an example project for django-socketio from https://github.com/stephenmcd/django-socketio. My project is running at port 8001 and socketio server is running at port 8002. But its showing a KeyError for 'socketio' in below section: At…
Akhil Sundar
  • 1,267
  • 5
  • 18
  • 32
0
votes
1 answer

Django channel visitor counter realtime

I am trying to show visitor counter on realtime basis with django. like how many visitor are online at my webiste. I written a websocket consumer but it alwasy give me 0 even if i open the site in multiple browser. this is my django channel…
user12551055
0
votes
1 answer

AttributeError: 'FlashPolicyServer' object has no attribute 'kill'

I get the following error as soon as I run django app along with the django-socketio app using python manage.py runserver_socketio SocketIOServer running on 127.0.0.1:8001 KeyboardInterrupt Thu Jul 6 22:04:52 2017 Traceback (most recent call…
0
votes
0 answers

KeyError at /socket.io

I am using django-socketio in one of my project and also installed all dependencies belongs to this app. But after the execution, it shows an error like below: KeyError at /socket.io socket = SocketIOChannelProxy(request.environ["socketio"]) I'm…
SkariaArun
  • 219
  • 1
  • 13
0
votes
1 answer

Socket.IO with Django, Nginx and Gunicorn

I'm trying to set up a Django server with Socket.io running. I've looked all over the place and tried a million different things but I can't figure out how to get nginx and gunicorn to play nice with django-socketio. Can anyone help? Specifically,…
0
votes
1 answer

Django: How to customize an runserver_socketio command for manage.py

I'm writing a realtime chatroom similar to this package with Django. It runs a separate WebSocket server with command python manage.py runserver_socketio But I can't figure out how to make the runserver_socketio command load my handler. The only…
wlnirvana
  • 1,811
  • 20
  • 36
0
votes
2 answers

Nginx and Django-socketio gives address already in use error

I am trying to setting up my django-socketio with uwsgi and nginx, and when I ran sudo uwsgi --ini uwsgi.ini I got an error saying Address is already in use. I know what the problem is, I think they problem is when I ran sudo uwsgi --ini uwsgi.ini,…
user2002692
  • 971
  • 2
  • 17
  • 34
1
2