I am using Django and channels (for WebSockets). Earlier, when I was developing, I created some objects in memory when a user does a request, and then websockets can use these objects.
After, I run the production server with ssl, and for testing, I had to run apps separately: python manage.py startsslserver
and daphne ... project.asgi:application
.
And now sockets do not have access to objects, which are initialized in django server.
Anybody knows, how I can solve this problem?