-
I'm making an application that multiple people can join into, and I need information when one client disconnects. My usecase is pretty close to the multichat example, but I need to redraw screen for all other clients when one disconnects. Any idea how to get this information? |
Beta Was this translation helpful? Give feedback.
Answered by
caarlos0
Jul 31, 2023
Replies: 1 comment 3 replies
-
hey, you can write a middleware that does something once the session ends, or do it in the end of the session itself. e.g. https://github.com/charmbracelet/wish/blob/main/logging/logging.go : notice it logs before and after calling |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
eltsu7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hey, you can write a middleware that does something once the session ends, or do it in the end of the session itself.
e.g. https://github.com/charmbracelet/wish/blob/main/logging/logging.go : notice it logs before and after calling
sh(s)
.