> 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.1-server/server_sockets.md).

# 4.1.4 服务器sockets server\_sockets

* (Namespace)命名空间

namespace的默认别名(`/`)

```javascript
io.sockets.emit('hi',"everyone");

// 等价于

io.of('/').emit('hi',"everyone")
```
