From 4822b619d80f91418c419340573428d045c9f408 Mon Sep 17 00:00:00 2001
From: Garet Halliday <me@garet.holiday>
Date: Thu, 28 Mar 2024 14:49:11 -0500
Subject: [PATCH] no empty frames

---
 contrib/codecs/websocket/codec.go | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/contrib/codecs/websocket/codec.go b/contrib/codecs/websocket/codec.go
index 4a39c6f..862ba55 100644
--- a/contrib/codecs/websocket/codec.go
+++ b/contrib/codecs/websocket/codec.go
@@ -119,14 +119,6 @@ func (c *Codec) Flush() error {
 	c.wrLock.Lock()
 	defer c.wrLock.Unlock()
 	if c.currentFrame == nil {
-		wr, err := c.conn.Writer(c.ctx, websocket.MessageText)
-		if err != nil {
-			return err
-		}
-		err = wr.Close()
-		if err != nil {
-			return err
-		}
 		return nil
 	}
 	err := c.currentFrame.Close()
-- 
GitLab