server.attach(httpServer[, options])

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

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