> 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/3-ke-hu-duan-apiclientapi/3.3-socket/socket_open.md).

# 3.3.4 socket.open()

* **Returns** `Socket`

手动打开socket

```javascript
const socket=io({
    autoConnect:false
})

// ...
socket.open()
```

它还可用于手动重新连接：

```javascript
socket.on('disconnect',()=>{
    socket.open()
})
```
