Commit Graph

7 Commits (4b3f9e969a127db2f9ec16892b428ead1807291d)

Author SHA1 Message Date
Scott Nonnenberg a0ed993b42 Now we've got everything prettified! 7 years ago
Daniel Gasienica 95321e5d3e Remove Vim mode lines 7 years ago
lilia f764445c86 Remove erroneous license file and headers
We only use GPLV3 around here.

// FREEBIE
10 years ago
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
10 years ago
lilia e4b49bde51 Add more websocket tests 10 years ago
lilia cc6a44f35d Fix tests 10 years ago
lilia 3ea254d0db Add TextSecureWebSocket tests 10 years ago