Open nerdoc opened 1 year ago
Oh, as nearly always, found a solution in Layer 8. the asgi.py file is completely ignored if you use Django's builtin development server.
You have to install e.g. Daphne and place it into INSTALLED_APPS, then everything works as expected.
While this was my own fault, people who are not that fluent with ASGI should be given a hint in the README, that you need to use a server like daphne or uvicorn etc. to even develop a project using reactor.
Could you add that in the README? Maybe we'll keep this bug open until that? If you want I can try a PR too.
Hi Eddy, I have not used reactor for a long time now (approx. v2 before), and much seems to have changed.
However; I can't setup a test project from your README.md - I use redis with proper RedisChannelLayer, redis is runing, but I always get the error message in the Django logs:
And the browser dev console says:
So this seems weird, as
__reactor__
seems to be loaded as websocket pattern.redis works, ASGI works.
websocket_urlpatterns
ofreactor.urls
is properly added to theProtocolTypeRouter
in asgi.py.Any hints? Do I have a misconfiguration? Or are there some hints missing in the README.md?