Skip to content

docs: document dropping socket middleware packets#5522

Open
iamdhrv wants to merge 1 commit into
socketio:mainfrom
iamdhrv:agent/document-socket-middleware-drop
Open

docs: document dropping socket middleware packets#5522
iamdhrv wants to merge 1 commit into
socketio:mainfrom
iamdhrv:agent/document-socket-middleware-drop

Conversation

@iamdhrv

@iamdhrv iamdhrv commented Jul 9, 2026

Copy link
Copy Markdown

Summary

  • document that socket middleware can silently drop a packet by returning without calling next()
  • keep the existing next(error) example for emitting authorization errors

Closes #3876

Validation

  • git diff --check

@iamdhrv iamdhrv marked this pull request as ready for review July 9, 2026 12:10
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.

Please update documentation to show how to reject a packet from socket middleware

1 participant