forked from whisperfish/presage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reconnect websockets lazily on usage (whisperfish#222)
When identified or unidentified websocket is used, it is checked whether it is closed, and in that case it is reconnected. This is less powerful to auto-reconnecting websockets, because the messages stream would not be interrupted. But this is a very simple implementation which works quite well on application level.
- Loading branch information
Showing
2 changed files
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ authors = ["Gabriel Féron <[email protected]>"] | |
edition = "2021" | ||
|
||
[dependencies] | ||
libsignal-service = { git = "https://github.com/whisperfish/libsignal-service-rs", rev = "9af1f42" } | ||
libsignal-service-hyper = { git = "https://github.com/whisperfish/libsignal-service-rs", rev = "9af1f42" } | ||
libsignal-service = { git = "https://github.com/whisperfish/libsignal-service-rs", rev = "0a7987e" } | ||
libsignal-service-hyper = { git = "https://github.com/whisperfish/libsignal-service-rs", rev = "0a7987e" } | ||
|
||
base64 = "0.21" | ||
futures = "0.3" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters