Skip to content

Interface: RelayPoolOptions

Defined in: index.ts:374 (opens in a new tab)

PropertiesLink to this section

PropertyTypeDescriptionDefined in
backoffMsnumberAfter a relay refuses the handshake, calls skip it this long ("relay_unavailable").index.ts:384 (opens in a new tab)
enabledbooleanShare one socket per relay among every call on the page. Defaults to on in a browser and off elsewhere, where a module-level socket would outlive a serverless request.index.ts:380 (opens in a new tab)
idleMsnumberA pooled socket with nothing on it closes after this long.index.ts:386 (opens in a new tab)
maxSubscriptionsnumberSubscriptions open at once on one relay; further queries wait their turn.index.ts:382 (opens in a new tab)