Open ikrma47 opened 2 years ago
I notice you're setting a path
entry, which is usually part of urls.py
and used for WSGI setups. However, Django Channels requires setting up ASGI-based routes. See for example: https://github.com/fanout/django-eventstream/blob/master/examples/chat/server/asgi.py#L30
Got it. Now it's working fine.
Thank you very much. This library makes my FYP easier.
I think I am running in the same problem. I am a little bit confused, because @jkarneges you write "not to set a path entry in urls.py" but in the linked project there is a path object set in the urls.py:
urlpatterns = [
path('', views.home),
path('<room_id>', views.home),
path('rooms/<room_id>/messages/', views.messages),
path('rooms/<room_id>/events/', include(django_eventstream.urls), {'format-channels': ['room-{room_id}']}),
]
@xtlc the project is set up for both ASGI and WSGI, where urls.py is used by the latter.
Hello, I've been stuck with send_event function.
my backend is generating image frames after processing a video, I want to send these frames directly to frontend. but I tried using this library.
whenever I send a get request to /events/ it displayed
after that when I use send_event function with type that I specified in the urlpatterns, but unfortunately nothing happens
whenever I hit this view, I received nothing on the frontend. my frontend is react