init LastPong
This commit is contained in:
parent
6f60423c03
commit
ed6902def0
1 changed files with 3 additions and 2 deletions
|
@ -32,6 +32,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,
|
||||||
}
|
}
|
||||||
mu.Lock()
|
mu.Lock()
|
||||||
|
|
Loading…
Reference in a new issue