websocket disconnected when browser refreshes
i was playing around web socket connection manager of tigase with websocket browser client. what is happening when browser refreshes connection dismissed. so is it any bug?
Added by Andrzej Wójcik almost 5 years ago
This is valid behavior of websocket connection manager as when you hit refresh button then browser (on it's own) closes websocket connection. This is what browser does. On server side Tigase XMPP Server and it's websocket connection manager only receives information that connection was broken and since there is no other valid thing to do it closes session related to this connection.
From server end refresh of a browser or disconnection or broken connection looks the same - there is no way to know what really happend. Current draft of specification which describes XMPP connection over WebSocket does not cover solution for page refreshes, but I suppose that it may be solved later by using Stream Management extension of XMPP protocol.