fanout / django-eventstream

Server-Sent Events for Django
MIT License
650 stars 85 forks source link

send_event not working when django =2.1.3 #26

Closed ghost closed 5 years ago

ghost commented 5 years ago

I use channels = 2.1.5,django = 2.1.3,which send_event failed

the working one is channels = 2.1.2, django = 1.11.15

I found publish method at line 159 in pubcontrol.py: def publish(self, channel, item, blocking=False, callback=None):

in this function,i found self.clients is empty,is this why no events sent?

ghost commented 5 years ago

sorry, my mistake, now is working fine.

I make send_event call in python console, not in asgi context and no GRIP proxy layer used.