Cable-Desktop/libtextsecure
lilia 7d3d634a2d Move/refactor keepalive logic and add disconnect timer
We now disconnect ourselves if we don't get the server's response to a
keepalive request within 30s. This way we will eventually disconnect if
the network goes away but the socket is not closed.*

* See code.google.com/p/chromium/issues/detail?id=197841 and
https://stackoverflow.com/questions/11755605/chrome-websocket-connection-not-closed-when-browser-closed

We will then try to reconnect once a minute (See 8a10c96);

Keepalives belong at this level anyway, since the format is defined by
both the websocket resource protocol and our specific server url
structure.

// FREEBIE
2015-07-16 15:01:34 -07:00
..
storage Handle group sync for existing groups 2015-06-25 13:24:32 -07:00
test Move/refactor keepalive logic and add disconnect timer 2015-07-16 15:01:34 -07:00
account_manager.js Fix standalone registration 2015-07-06 12:45:09 -07:00
api.js DRY up Promise creation in api.js 2015-07-13 13:03:42 -07:00
axolotl_wrapper.js Implement sync protocol changes 2015-06-17 12:29:39 -07:00
components.js Regenerate components/libts 2015-01-14 11:39:36 -10:00
contacts_parser.js Support for group sync 2015-06-25 13:24:32 -07:00
crypto.js Signaling key is now an array buffer 2015-05-15 11:39:22 -07:00
errors.js Tweak key conflict error messages 2015-05-07 17:43:30 -07:00
helpers.js Fix group update avatar handling 2015-06-26 12:23:57 -07:00
key_worker.js Generate key_worker.js 2015-04-15 15:38:57 -07:00
libaxolotl.js Update libaxolotl 2015-05-15 16:30:22 -07:00
message_receiver.js Move/refactor keepalive logic and add disconnect timer 2015-07-16 15:01:34 -07:00
protobufs.js Load protobufs asynchronously. Fixes #223 2015-05-15 11:38:14 -07:00
sendmessage.js Use Promise.reject for simplicity 2015-07-14 13:39:36 -07:00
storage.js Move local identitykey and registrationid to indexeddb 2015-05-15 11:38:14 -07:00
stringview.js Move js files around for libtextsecure split 2015-01-14 09:35:57 -10:00
websocket-resources.js Move/refactor keepalive logic and add disconnect timer 2015-07-16 15:01:34 -07:00
websocket.js Move/refactor keepalive logic and add disconnect timer 2015-07-16 15:01:34 -07:00