Session Desktop - Onion routing based messenger
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Go to 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.
10 years ago
build Allocate 64 bytes for curve25519 sigs 10 years ago
components Add canvas.toBlob polyfill 10 years ago
fonts Add fonts so we don't have to hit googlefonts 10 years ago
images Curtail over-zealous websocket reconnects 10 years ago
js Curtail over-zealous websocket reconnects 10 years ago
libaxolotl Preserve whitespace in _concat files 10 years ago
libtextsecure Curtail over-zealous websocket reconnects 10 years ago
native nacl -> native 11 years ago
protos Remove non-existant device messages 10 years ago
stylesheets Curtail over-zealous websocket reconnects 10 years ago
test Rename Whisper.View#attributes 10 years ago
.bowerrc
.gitignore
.jscsrc Add JSCS and run as grunt test task 11 years ago
.jshintrc
.travis.yml Add secure environment vars for travis 11 years ago
CONTRIBUTING.md Update CONTRIBUTING.md 10 years ago
Gruntfile.js Restyle registration page 10 years ago
LGPL
README.md Turn up the volume on README warnings 10 years ago
X11
background.html Consolidate window logic in panel controller 10 years ago
bower.json Add canvas.toBlob polyfill 10 years ago
conversation.html Tweak delivery receipt and timestamp display 10 years ago
icon.png Add new icon 10 years ago
index.html Curtail over-zealous websocket reconnects 10 years ago
manifest.json Fix whitespace in manifest 10 years ago
options.html Restyle registration page 10 years ago
package.json Add JSCS and run as grunt test task 11 years ago
register.html Restyle registration page 10 years ago

README.md

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.