> 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_attach_httpserver_options.md).

# 4.1.10 服务器附加HTTP服务选项 server\_attach\_httpServer\_options

* `httpServer` (http.Server) 要附加到的服务器
* `options` (Object)

使用提供的`options`（可选）将`服务器`连接到`httpServer`上的engine.io实例。
