-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable keep-alive on unidentified websocket #175
Conversation
Not sure what to look out for, but sending messages seems to work fine. Also probably noted a copy-and-paste error. |
presage/src/manager.rs
Outdated
} | ||
|
||
async fn unidentified_websocket(&self) -> Result<SignalWebSocket, Error<C::Error>> { | ||
if let Some(ws) = self.state.unidentified_websocket.borrow().as_ref() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a similar code which caches the unidentified websocket. The question is: what happens if connection is lost to it? Then we have a cached broken websocket. Right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now, this is unhandled, which is really bad and the reason why I haven't merged this PR yet.
When trying this, I get the following panic after linking:
|
This was done in #203 and works well! |
and initialize websockets in Manager.
@boxdot could you try this out?