add and improve remove driver function and rename datapoint

This commit is contained in:
Adrian Zuercher
2025-07-31 12:20:49 +02:00
parent b21101958d
commit 21e4231e24
8 changed files with 107 additions and 49 deletions

View File

@@ -38,7 +38,6 @@ func (cH *ClientHandler) ConnectNewClient(id string, c *gin.Context) (client *mo
client, err = models.ConnectNewClient(id, c)
client.OnClose = func(code int, reason string) {
fmt.Println(23, "closing", id)
delete(cH.Clients, id)
}