Skip to content

Conversation

@FZambia
Copy link
Member

@FZambia FZambia commented Nov 12, 2025

Relates #1069

Unidirectional WebSocket now uses closing handshake for server-initiated disconnects.

Two new options for uni_websocket section:

  • disable_closing_handshake disables WebSocket closing handshake. This restores the behavior prior to Centrifugo v6.5.1 where server never sent a close frame on connection close initiated by server. Normally closing handshake is recommended to be performed according to WebSocket protocol RFC, so this option is useful only in some specific cases when you need to restore the previous behavior.
  • disable_disconnect_push disables sending disconnect push messages to clients. It's sent by default to make unidirectional transports similar, but since uni_websocket transport also sends close frame to the client with the same code/reason – some users may want to disable disconnect push to avoid ambiguity.

@FZambia FZambia merged commit 5146a9e into master Nov 12, 2025
6 checks passed
@FZambia FZambia deleted the uni_ws_closing_handshake branch November 13, 2025 05:15
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.

2 participants