improve websocket ping and remodel for rename datapoint
This commit is contained in:
@@ -38,6 +38,7 @@ 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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user