INNER CODE UNIT · Python

__getattribute__

permitio/fastapi_websocket_rpc · fastapi_websocket_rpc/rpc_channel.py:102

    def __getattribute__(self, name: str):
        if (not name.startswith("_") or name in EXPOSED_BUILT_IN_METHODS) and (
            self._method_names is None or name in self._method_names
        ):
            return RpcProxy(self._channel, name)
        else:
            return super().__getattribute__(name)


# Callback signatures
async def OnConnectCallback(channel):
    pass


async def OnDisconnectCallback(channel):
    pass

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…