fix: outgoing pings

This commit is contained in:
Marc Tarnutzer 2023-05-05 12:14:29 +02:00
parent f152a5e0c7
commit ee9502bc3e

View File

@ -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 {