(opts: Partial<ClusterAdapterOptions> = {})
| 24 | * @see https:class="cm">//nodejs.org/api/cluster.html |
| 25 | */ |
| 26 | export function createAdapter(opts: Partial<ClusterAdapterOptions> = {}) { |
| 27 | return function (nsp: any) { |
| 28 | return new NodeClusterAdapter(nsp, opts); |
| 29 | }; |
| 30 | } |
| 31 | |
| 32 | export class NodeClusterAdapter extends ClusterAdapterWithHeartbeat { |
| 33 | constructor(nsp: any, opts: ClusterAdapterOptions = {}) { |
no outgoing calls
no test coverage detected