Skip to content

Documentation / @super-line/adapter-zeromq / ZeroMqMeshOptions

Interface: ZeroMqMeshOptions

Defined in: index.ts:13

Brokerless full-mesh: this node binds a PUB and connects a SUB to every peer's PUB.

Properties

bind

bind: string

Defined in: index.ts:16

This node's own PUB endpoint to bind (e.g. tcp://0.0.0.0:5555, or tcp://127.0.0.1:0 for an OS-picked port).


mode?

optional mode?: "mesh"

Defined in: index.ts:14


peers?

optional peers?: string[]

Defined in: index.ts:18

Other nodes' PUB endpoints to connect a SUB to. Lazy + auto-reconnecting, so peers may start later.


presence?

optional presence?: ZeroMqPresenceOption

Defined in: index.ts:22

Cluster presence directory. On by default.


sendHighWaterMark?

optional sendHighWaterMark?: number

Defined in: index.ts:20

PUB/SUB high-water-mark (messages buffered per peer before silent drops). Defaults to 100_000.

Released under the MIT License.