Skip to content

Listen for delivery_error. Command acknowledgements also return typed failures. Errors include code, message, fatal, and retryable. A fatal error is followed by disconnection; the error itself is best-effort if the transport has already failed.

Socket.IO owns heartbeat detection and reconnect backoff. After any automatic reconnect, subscribe with your last successfully processed cursor. A terminal application violation causes an explicit server disconnect: fix its cause before calling connect() again. Authentication failures before connection appear as connect_error; correct the credential or project rather than retrying indefinitely.

Fatal errors

CodeRetryableAction
protocol_violationfalseFix the invalid command sequence or excessive input.
subscribe_timeouttrueSubscribe promptly after connecting.
frame_too_largefalseReduce the command size.
slow_consumertrueDrain deliveries faster and resume from the processed cursor.
capacitytrueAllow automatic reconnection with backoff.
server_drainingtrueReconnect and subscribe with the processed cursor.
upstream_unavailabletrueReconnect and resume.
internaltrueReconnect; retain the connection ID for diagnostics.

Non-fatal errors

CodeAction
reply_unknown_eventThe expectation expired, was consumed, or belongs to another connection.
reply_invalidCorrect the reply fields or encoding.
reply_too_largeReduce the decoded reply body.
reply_publish_failedForwarding failed; the outcome is not a downstream success.
reply_capacityThis delivery cannot accept a reply; continue handling events.
reply_forbiddenUse a credential with project:write to reply.
subscribe_repeatedKeep using the existing subscription.
frame_invalidCorrect the event name, payload, or acknowledgement callback.