Django documentation for contrib AuthMiddleware and SessionMiddleware specify that request.user and request.session are available within views.
django-eventstream populates request.user only, so this means when creating a custom ChannelManager get_channels_for_request has access to request.user but has to use request.scope["session"] to get to the session.
Django documentation for contrib AuthMiddleware and SessionMiddleware specify that request.user and request.session are available within views.
django-eventstream populates request.user only, so this means when creating a custom ChannelManager get_channels_for_request has access to request.user but has to use request.scope["session"] to get to the session.