Replies: 1 comment
-
Using the drop guard pretty much the same way as in the first example should work. You just need to have something which implements You might want to share what you've tried if this approach doesn't work for you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I'm reading through #1060 and #2264, but they seem different since #1060 uses a plain stream instead of a broadcast stream and #2264 prepends a message instead of handling afterwards.
I am trying to add some cleanup code after each client disconnects. I've tried using guards but wasn't able to figure out when it comes to BroadcastStream. Any ideas? Any pointers much appreciated!
axum version
0.7.5
Beta Was this translation helpful? Give feedback.
All reactions