Skip to content
This repository has been archived by the owner on Apr 4, 2020. It is now read-only.

Support websocket connection close reason handling #7

Open
FZambia opened this issue Jan 11, 2017 · 0 comments
Open

Support websocket connection close reason handling #7

FZambia opened this issue Jan 11, 2017 · 0 comments
Assignees

Comments

@FZambia
Copy link
Member

FZambia commented Jan 11, 2017

Centrifugo sends Disconnect Advice in connection close reason (in Close Websocket frame). It's a JSON encoded string which contains 2 fields at moment, for example

{
  "reason": "shutting down",
  "reconnect": true
}

Client should follow this reconnect advice - if it's false then client should not attempt to reconnect.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants