How to get django user after channels.Demultiplexer?
<p>I'm trying to build user related websocket service with Django Channels.
I have this Demultiplexer at first line of my routing.py:</p>

<pre><code>def checkauth(f):
    def wrapper(*args, **kwargs):        
        if args[0].message.user.is_anonymous():
            args[0].send(stream="auth", payload = {'m':'pissoff'})
            args[0].close()
            return
        return f(*args, **kwargs)
    return wrapper


class Demultiplexer(WebsocketDemultiplexer):
    http_user = True

    mapping = {"auth": "user.tracking",}

    @checkauth
    def connect(self, message, **kwargs):

    @checkauth
    def receive(self, content, **kwargs):
</code></pre>

<p>So, now i writing consumers in routing.py:</p>

<pre><code>route('user.tracking', another_app.myconsumer), 
</code></pre>

<p>or</p>

<pre><code>route_class(another_app.MyConsumer),` 
</code></pre>

<p>and they hasn't message.user in input.</p>

<p>Do i need call channel_session_user_from_http again?
Is there any reliable way to append user in Demultiplexer?</p>