Support websocket connection close reason
FZambia opened this issue · 0 comments
FZambia commented
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.