-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add server side events to notify the clients #346
base: main
Are you sure you want to change the base?
Add server side events to notify the clients #346
Conversation
server/src/sse.rs
Outdated
@@ -0,0 +1,63 @@ | |||
use std::sync::{Arc, Mutex}; | |||
use actix_web_lab::sse; | |||
use actix_web_lab::sse::Event; |
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.
Please fix those unused imports. Changes look fine otherwise, I’ll approve once this is fixed
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.
But the build fails without those 3?
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.
Sorry, the comment might’ve been placed on the wrong line. See the checks tab — it says which imports are unused (also not all code is formatted with cargo fmt, this too needs to be done)
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.
Code formatted and removed unused imports
Signed-off-by: Shivank Anchal <[email protected]>
No description provided.