* Captures upgrade requests for a http.Server. * * @param server * @param options * @return engine.io server
( server: HttpServer, options: AttachOptions & ServerOptions, )
| 57 | */ |
| 58 | |
| 59 | function attach( |
| 60 | server: HttpServer, |
| 61 | options: AttachOptions & ServerOptions, |
| 62 | ): Server { |
| 63 | const engine = new Server(options); |
| 64 | engine.attach(server, options); |
| 65 | return engine; |
| 66 | } |
no test coverage detected