Session Desktop - Onion routing based messenger
Find a file
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
build Allocate 64 bytes for curve25519 sigs 2015-02-10 13:10:54 -08:00
components Add canvas.toBlob polyfill 2015-03-03 18:44:18 -08:00
fonts Add fonts so we don't have to hit googlefonts 2015-02-11 17:37:57 -08:00
images Curtail over-zealous websocket reconnects 2015-03-09 16:04:26 -07:00
js Curtail over-zealous websocket reconnects 2015-03-09 16:04:26 -07:00
libaxolotl Preserve whitespace in _concat files 2015-02-20 15:34:49 -08:00
libtextsecure Curtail over-zealous websocket reconnects 2015-03-09 16:04:26 -07:00
native nacl -> native 2015-01-14 11:39:36 -10:00
protos Remove non-existant device messages 2015-02-26 12:13:56 -08:00
stylesheets Curtail over-zealous websocket reconnects 2015-03-09 16:04:26 -07:00
test Rename Whisper.View#attributes 2015-03-06 17:05:36 -08:00
.bowerrc Rename bower_components 2014-10-30 16:53:08 -07:00
.gitignore Clean up after crazy emscripten fueled rager 2014-11-08 11:03:24 -08:00
.jscsrc Add JSCS and run as grunt test task 2015-01-14 10:00:40 -10:00
.jshintrc Run tests on Sauce Labs 2014-11-22 20:30:57 -08:00
.travis.yml Add secure environment vars for travis 2014-11-24 14:23:51 -08:00
background.html Consolidate window logic in panel controller 2015-02-12 13:21:17 -08:00
bower.json Add canvas.toBlob polyfill 2015-03-03 18:44:18 -08:00
CONTRIBUTING.md Update CONTRIBUTING.md 2015-03-03 11:15:28 -08:00
conversation.html Tweak delivery receipt and timestamp display 2015-03-05 16:29:12 -08:00
Gruntfile.js Restyle registration page 2015-03-06 15:27:49 -08:00
icon.png Add new icon 2015-02-11 17:38:02 -08:00
index.html Curtail over-zealous websocket reconnects 2015-03-09 16:04:26 -07:00
LGPL LGPL license (I'd like to be an axolotl/TS JS lib in the future) 2014-05-04 02:34:13 -04:00
manifest.json Fix whitespace in manifest 2015-02-12 13:21:15 -08:00
options.html Restyle registration page 2015-03-06 15:27:49 -08:00
package.json Add JSCS and run as grunt test task 2015-01-14 10:00:40 -10:00
README.md Turn up the volume on README warnings 2015-03-03 15:28:12 -08:00
register.html Restyle registration page 2015-03-06 15:27:49 -08:00
X11 rm useless GPL, license testvectors under X11 (ie 3-c MIT + advertising provision) 2014-10-26 02:59:59 -07:00

Build Status TextSecure for the Browser

Private text and chat for the browser.

⚠️ Warning ⚠️

This is unfinished, unreleased software.

Are you a web developer interested in contributing to this project? 👍 Please proceed to CONTRIBUTING.md for setup instructions and contributor guidelines.

Not a developer? 👷 Please refrain from installing until our first release. Follow the blog for updates.

Interoperability

TextSecure for the Browser works with Signal for iOS and TextSecure on Android.

Cryptography Notice

This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See http://www.wassenaar.org/ for more information.

The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this distribution makes it eligible for export under the License Exception ENC Technology Software Unrestricted (TSU) exception (see the BIS Export Administration Regulations, Section 740.13) for both object code and source code.

License

Copyright 2014 Open Whisper Systems

Licensed under the GPLv3: http://www.gnu.org/licenses/gpl-3.0.html

Developers Developers Developers Developers!

Please see CONTRIBUTING.md for setup instructions and contributor guidelines.