(
v?: AdapterConstructor
)
| 378 | public adapter(): AdapterConstructor | undefined; |
| 379 | public adapter(v: AdapterConstructor): this; |
| 380 | public adapter( |
| 381 | v?: AdapterConstructor |
| 382 | ): AdapterConstructor | undefined | this { |
| 383 | if (!arguments.length) return this._adapter; |
| 384 | this._adapter = v; |
| 385 | for (const nsp of this._nsps.values()) { |
| 386 | nsp._initAdapter(); |
| 387 | } |
| 388 | return this; |
| 389 | } |
| 390 | |
| 391 | /** |
| 392 | * Attaches socket.io to a server or port. |
no test coverage detected