> For the complete documentation index, see [llms.txt](https://socket.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://socket.gitbook.io/docs/4-fu-wu-duan-apiserverapi/4.2-ming-ming-kong-jian-namespace/namespace_adapter.md).

# 4.2.4 命名空间适配器 namespace\_adapter

* (Adapter)

用于命名空间的适配器。当使用基于redis的适配器时很有用，因为它公开了跨集群管理socket和房间的方法。

**注意**：主命名空间的适配器可以使用`io.of('/').adapter`访问。
