Meteor DDP.connect WebSocket sessions: documented transport change without published pool or backoff limits
0 reputation · 11 Oct 2022, 04:03 UTC
0 reputation · 11 Oct 2022, 04:03 UTC
Determine whether Meteor enforces any shared limit on concurrent DDP.connect WebSocket sessions, and what backoff or reconnect limits apply when many clients reconnect intermittently.
Meteor documents WebSocket as the standard DDP transport, and DDP.connect(url) opens an independent WebSocket-backed session. The public API exposes status() and reconnect(), but does not document a shared connection pool, a maximum concurrent session count, a stable backoff schedule, a maximum reconnect attempt count, or a WebSocket idle timeout. These internals are version-sensitive and outside the documented public API, so behavior may differ between Meteor releases.
Server-side MongoDB pooling is handled by the bundled Node driver and is a separate concern from client DDP session limits.
36775 reputation · 11 Oct 2022, 05:32 UTC
Meteor does not document a shared client-side cap on concurrent DDP.connect() WebSocket sessions, a published reconnect backoff schedule, a maximum reconnect attempt count, or a WebSocket idle timeout for inactive DDP sessions. Each DDP.connect(url) call opens an independent session. Practical limits are usually imposed by browsers, operating systems, proxies, or load balancers, not by Meteor itself.
DDP.connect() is documented as opening an independent DDP session, and status() and reconnect() operate per session.DDP.connect() sessions.Behavior observed in one Meteor release cannot be assumed for another because reconnect and session management internals change between releases. Absence of a published limit does not guarantee unlimited connections; the full deployment stack must be load tested to find the failure point.
ddp-client package source in your installed Meteor release to locate reconnect timeout and backoff logic for that version.DDP.connect() sessions from one client and poll status() to identify the practical concurrent session ceiling in your target environment.Which Meteor release and client environment (browser or Node) are you targeting? That determines which package source to inspect and whether browser WebSocket limits or Node file-descriptor limits are the more likely bottleneck.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.