Skip to content

docs(streaming): document WS close code 1006 as RFC-reserved client-side code#200

Merged
Mlaz-code merged 1 commit into
mainfrom
docs/ws-close-code-1006
May 2, 2026
Merged

docs(streaming): document WS close code 1006 as RFC-reserved client-side code#200
Mlaz-code merged 1 commit into
mainfrom
docs/ws-close-code-1006

Conversation

@Mlaz-code
Copy link
Copy Markdown
Collaborator

Summary

Adds close code 1006 to the close-code tables in both the WebSocket streaming guide (content/en/streaming/websocket.mdx) and the WebSocket API reference (content/en/api-reference/websocket.mdx), with a Callout explaining that 1006 is never transmitted over the wire — the client WebSocket library generates it locally on abnormal TCP teardown (network loss, process kill).

Developers commonly mistake 1006 for a server-sent code and waste time looking for a server-side cause. The callout surfaces the correct interpretation up front.

Origin

Authored by a parked Paperclip agent on paperclip/SHA-2177 11 hours ago, never PR'd. Cherry-picked onto a fresh branch off origin/main. The dirty public/openapi.json regen and stray ~/ in that worktree were excluded.

Test plan

  • Vercel preview build green
  • Both pages now list 1006 (Abnormal Closure) in their close-code tables
  • Callout renders correctly on both pages

🤖 Generated with Claude Code

…ide code

Add code 1006 to the close code tables in both the WebSocket streaming guide
and the WebSocket API reference, with a Callout explaining that it is never
transmitted over the wire — the client WebSocket library generates it locally
on abnormal TCP teardown (network loss, process kill). Developers commonly
mistake it for a server-sent code; the callout surfaces this before they waste
time debugging the server side.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs.sharpapi.io Ready Ready Preview, Comment May 2, 2026 3:15pm

Request Review

@Mlaz-code Mlaz-code merged commit e0bcf53 into main May 2, 2026
2 checks passed
Mlaz-code added a commit that referenced this pull request May 7, 2026
…ide code (#200)

Add code 1006 to the close code tables in both the WebSocket streaming guide
and the WebSocket API reference, with a Callout explaining that it is never
transmitted over the wire — the client WebSocket library generates it locally
on abnormal TCP teardown (network loss, process kill). Developers commonly
mistake it for a server-sent code; the callout surfaces this before they waste
time debugging the server side.

Co-authored-by: root <root@api-dev.hs.chocopancake.com>
Co-authored-by: Paperclip <noreply@paperclip.ing>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant