signal-desktop/images
lilia fd6e2954f7 Curtail over-zealous websocket reconnects
Closes #173

Previously, in the event of a failed websocket auth, we would attempt to
reconnect once a second ad infinitum. This changeset ensures that we
only reconnect automatically if the socket closed 'normally' as
indicated by the code on the socket's CloseEvent. Otherwise, show a
'Websocket closed' error on the inbox view.

Ideally we would show a more contextual error (ie, 'Unauthorized'), but
unfortunately the actual server response code is not available to our
code. It can be observed in the console output from the background page,
but programmatically, we only receive the WebSocket CloseEvent codes
listed here:
https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent#Status_codes

The websocket error message is displayed by a normally-hidden but ever
present socket status element. Clicking this element will immediately
refresh the background page, which will try again to open the websocket
connection.
2015-03-09 16:04:26 -07:00
..
appstore.svg Restyle registration page 2015-03-06 15:27:49 -08:00
audio.png Add missing images 2015-03-02 23:23:11 -08:00
back.png Make 'New Message' view match new title bar style 2015-02-12 13:21:15 -08:00
default.png Default avatars 2014-10-29 16:05:51 -07:00
error_red.png Curtail over-zealous websocket reconnects 2015-03-09 16:04:26 -07:00
menu.png Restyle menu icon 2015-02-11 17:38:03 -08:00
paperclip.png Fixup conversation page styles and functionality 2015-02-11 17:37:57 -08:00
pencil.png Style elements for compose flow 2015-02-11 17:37:59 -08:00
playstore.png Restyle registration page 2015-03-06 15:27:49 -08:00
refresh.png Curtail over-zealous websocket reconnects 2015-03-09 16:04:26 -07:00
send.png Fixup conversation page styles and functionality 2015-02-11 17:37:57 -08:00
video.png Add missing images 2015-03-02 23:23:11 -08:00