'Internal'

def recv_connect(self):

    if (self.request.session.identity is None):
        self.emit('auth-error', '')
        return
    self.context = self.request.session.appcontext
    self.on_connect()
