From ee9502bc3e234a022a6b6f88486607e417dd105a Mon Sep 17 00:00:00 2001 From: Marc Tarnutzer Date: Fri, 5 May 2023 12:14:29 +0200 Subject: [PATCH] fix: outgoing pings --- connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connection.go b/connection.go index af2c9e3..ec45fdd 100644 --- a/connection.go +++ b/connection.go @@ -129,7 +129,7 @@ func (c *Connection) Ping() error { c.mutex.Lock() defer c.mutex.Unlock() - return wsutil.WriteClientMessage(c.writer, ws.OpPing, nil) + return wsutil.WriteClientMessage(c.conn, ws.OpPing, nil) } func (c *Connection) WriteMessage(data []byte) error {