diff --git a/internal/websocket/handle_connection.go b/internal/websocket/handle_connection.go index 46ce71d..39b94d7 100644 --- a/internal/websocket/handle_connection.go +++ b/internal/websocket/handle_connection.go @@ -32,8 +32,9 @@ func HandleConnection(w http.ResponseWriter, r *http.Request) { // Register the new client client := models.WebsocketClient{ - Conn: ws, - RealIP: r.RemoteAddr, + Conn: ws, + LastPong: time.Now(), + RealIP: r.RemoteAddr, } client.Conn.SetPongHandler(func(s string) error {