Skip to content

errors: Add 40901 "Message sequence mismatch" - #371

Open
zknill wants to merge 1 commit into
mainfrom
add-40901-message-sequence-mismatch
Open

zknill wants to merge 1 commit into
mainfrom
add-40901-message-sequence-mismatch

Conversation

@zknill

@zknill zknill commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Adds 40901 "Message sequence mismatch" for ably/realtime#8922.

A client can number its updates, deletes and appends to a message with version.sequence. Realtime applies a numbered change only if its sequence is exactly one more than the message's current sequence. Otherwise it refuses the change with 40901, statusCode 409, and puts the current sequence in the error's detail under sequence.

@zknill
zknill marked this pull request as ready for review November 11, 2026 17:12

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant