init LastPong

This commit is contained in:
Sebastian Mark 2024-11-20 20:26:04 +01:00
parent 5f8c818118
commit b1ddcb33e0

View file

@ -33,6 +33,7 @@ func HandleConnection(w http.ResponseWriter, r *http.Request) {
// Register the new client // Register the new client
client := models.WebsocketClient{ client := models.WebsocketClient{
Conn: ws, Conn: ws,
LastPong: time.Now(),
RealIP: r.RemoteAddr, RealIP: r.RemoteAddr,
} }