fd6e2954f7
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. |
||
---|---|---|
build | ||
components | ||
fonts | ||
images | ||
js | ||
libaxolotl | ||
libtextsecure | ||
native | ||
protos | ||
stylesheets | ||
test | ||
.bowerrc | ||
.gitignore | ||
.jscsrc | ||
.jshintrc | ||
.travis.yml | ||
background.html | ||
bower.json | ||
CONTRIBUTING.md | ||
conversation.html | ||
Gruntfile.js | ||
icon.png | ||
index.html | ||
LGPL | ||
manifest.json | ||
options.html | ||
package.json | ||
README.md | ||
register.html | ||
X11 |
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.