(
v?: AdapterConstructor,
)
| 448 | public adapter(): AdapterConstructor | undefined; |
| 449 | public adapter(v: AdapterConstructor): this; |
| 450 | public adapter( |
| 451 | v?: AdapterConstructor, |
| 452 | ): AdapterConstructor | undefined | this { |
| 453 | if (!arguments.length) return this._adapter; |
| 454 | this._adapter = v; |
| 455 | for (const nsp of this._nsps.values()) { |
| 456 | nsp._initAdapter(); |
| 457 | } |
| 458 | return this; |
| 459 | } |
| 460 | |
| 461 | /** |
| 462 | * Attaches socket.io to a server or port. |
no test coverage detected