(self, sid, namespace=None)
return eio_session.setdefault(namespace, {})
Return the user session for a client.

        :param sid: The session id of the client.
        :param namespace: The Socket.IO namespace. If this argument is omitted
                          the default namespace is used.

        The return value is a dictionary. Modifications made to this
        dictionary are not guaranteed to be preserved. If you want to modify
        the user session, use the ``session`` context manager instead.
Return the user session for a client.
Return the user session for a client .
async def get_session(self, sid, namespace=None):
        """Return the user session for a client.

        :param sid: The session id of the client.
        :param namespace: The Socket.IO namespace. If this argument is omitted
                          the default namespace is used.

        The return value is a dictionary. Modifications made to this
        dictionary are not guaranteed to be preserved. If you want to modify
        the user session, use the ``session`` context manager instead.
        """
        namespace = namespace or '/'
        eio_sid = self.manager.eio_sid_from_sid(sid, namespace)
        eio_session = await self.eio.get_session(eio_sid)
        return eio_session.setdefault(namespace, {})
async def get_session ( self , sid , namespace = None ) : namespace = namespace or '/' eio_sid = self . manager . eio_sid_from_sid ( sid , namespace ) eio_session = await self . eio . get_session ( eio_sid ) return eio_session . setdefault ( namespace , { } )