Skip to content

Documentation / @super-line/server / ClusterView

Interface: ClusterView

Defined in: index.ts:152

Asynchronous, cluster-wide introspection backed by the adapter's presence directory. Methods reject if the configured adapter has no presence support.

Methods

byUser()

byUser(userId): Promise<ConnDescriptor[]>

Defined in: index.ts:158

Connections for a given user key (the identify hook).

Parameters

userId

string

Returns

Promise<ConnDescriptor[]>


connections()

connections(): Promise<ConnDescriptor[]>

Defined in: index.ts:154

Every live connection across the cluster.

Returns

Promise<ConnDescriptor[]>


count()

count(): Promise<number>

Defined in: index.ts:156

Total live connection count across the cluster.

Returns

Promise<number>


room()

room(name): Promise<ConnDescriptor[]>

Defined in: index.ts:160

Connections that are members of room, across nodes.

Parameters

name

string

Returns

Promise<ConnDescriptor[]>


topology()

topology(): Promise<NodeStat[]>

Defined in: index.ts:162

Per-node aggregates (the other nodes and their counts).

Returns

Promise<NodeStat[]>

Released under the MIT License.