add some comments

This commit is contained in:
Drew Weymouth
2023-04-08 08:59:39 -07:00
parent a6b5e03476
commit 7298b6f8b9
10 changed files with 25 additions and 0 deletions
+2
View File
@@ -85,10 +85,12 @@ func (s *ServerManager) Logout() {
}
}
// Sets a callback that is invoked when a server is connected to.
func (s *ServerManager) OnServerConnected(cb func()) {
s.onServerConnected = append(s.onServerConnected, cb)
}
// Sets a callback that is invoked when the user logs out of a server.
func (s *ServerManager) OnLogout(cb func()) {
s.onLogout = append(s.onLogout, cb)
}