When the server is offline, a ddpclient.send would effectivley be
ignored. The callbacks would still be registered, and the messages are
lost. The behavior is described in more detail here vsivsi/meteor-job-collection#203.
This patch makes send requests callback with errors if the server is
not connected. There is a small exception to the "connect" message,
which obviously shouldn't be blocked.
When the server is offline, a ddpclient.send would effectivley be ignored. The callbacks would still be registered, and the messages are lost. The behavior is described in more detail here vsivsi/meteor-job-collection#203.
This patch makes send requests callback with errors if the server is not connected. There is a small exception to the "connect" message, which obviously shouldn't be blocked.